Share via


SmtpResponse.Equals method (Object)

The Equals method compares the current instance of the SmtpResponse structure to the object 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 Overrides Function Equals ( _
    obj As Object _
) As Boolean
'Usage
Dim instance As SmtpResponse
Dim obj As Object
Dim returnValue As Boolean

returnValue = instance.Equals(obj)
public override bool Equals(
    Object obj
)

Parameters

Return value

Type: System.Boolean
The Equals method returns true if the current instance of the SmtpResponse structure and the object specified by the comparand parameter are both empty or both have the same status code and enhanced status code; otherwise, the method returns false.

See also

Reference

SmtpResponse structure

SmtpResponse members

Equals overload

Microsoft.Exchange.Data.Transport.Smtp namespace