다음을 통해 공유


DisconnectEventArgs.DisconnectReason Property

The DisconnectReason property gets one of the DisconnectReason enumeration values that indicates the reason for the disconnection.

Namespace: Microsoft.Exchange.Data.Transport.Smtp
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

'Declaration
Public ReadOnly Property DisconnectReason As DisconnectReason
public DisconnectReason DisconnectReason { get; }
public:
property DisconnectReason DisconnectReason {
    DisconnectReason get ();
}
/** @property */
public DisconnectReason get_DisconnectReason ()
public function get DisconnectReason () : DisconnectReason

Property Value

The DisconnectReason property returns one of the valid DisconnectReason enumeration values.

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