Click or drag to resize
MimeKit

DisconnectedEventArgsIsRequested Property

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

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

Property Value

Boolean
true if the disconnect was explicitly requested; otherwise, false.
Remarks
If the IMailService was disconnected via the Disconnect(Boolean, CancellationToken) method, then the value of IsRequested will be true. If the connection was unexpectedly dropped, then the value will be false.
See Also