DisconnectedEventArgsIsRequested Property

Get whether or not the service was explicitly asked to disconnect.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool IsRequested { get; }

Property Value

Boolean
if the disconnect was explicitly requested; otherwise, .

Remarks

If the IMailService was disconnected via the Disconnect(Boolean, CancellationToken) method, then the value of IsRequested will be . If the connection was unexpectedly dropped, then the value will be .

See Also