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
Get
'Usage
Dim instance As DisconnectEventArgs
Dim value As DisconnectReason
value = instance.DisconnectReason
public DisconnectReason DisconnectReason { get; }
Property value
Type: Microsoft.Exchange.Data.Transport.Smtp.DisconnectReason
The DisconnectReason property returns one of the valid DisconnectReason enumeration values.