SmtpResponse.Equals method (SmtpResponse)
The Equals method compares the current instance of the SmtpResponse structure to the SmtpResponse structure specified by the comparand parameter.
Namespace: Microsoft.Exchange.Data.Transport.Smtp
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public Function Equals ( _
comparand As SmtpResponse _
) As Boolean
'Usage
Dim instance As SmtpResponse
Dim comparand As SmtpResponse
Dim returnValue As Boolean
returnValue = instance.Equals(comparand)
public bool Equals(
SmtpResponse comparand
)
Parameters
comparand
Type: Microsoft.Exchange.Data.Transport.Smtp.SmtpResponseThe SmtpResponse structure to compare to this instance of the SmtpResponse structure.
Return value
Type: System.Boolean
The Equals method returns true if the current instance of the SmtpResponse structure and the SmtpResponse structure specified by the comparand parameter are both empty or both have the same status code and enhanced status code; otherwise, the method returns false.