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
public bool Equals (
SmtpResponse comparand
)
public:
bool Equals (
SmtpResponse comparand
)
public boolean Equals (
SmtpResponse comparand
)
public function Equals (
comparand : SmtpResponse
) : boolean
Parameters
- comparand
The SmtpResponse structure to compare to this instance of the SmtpResponse structure.
Return Value
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003