Disconnected Event ArgsIs Requested Property
Get whether or not the service was explicitly asked to disconnect.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if the disconnect was explicitly requested; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool IsRequested { get; }Property Value
Booleanif 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 .