Imap CapabilitiesDisable Method
Disable the specified well-known capability.
Definition
Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if the capability was disabled; otherwise, if it was not supported or had already been disabled.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool Disable(
ImapCapability capability
)Parameters
- capability ImapCapability
- The capability to disable.
Return Value
Booleanif the capability was disabled; otherwise, if it was not supported or had already been disabled.
Remarks
Disables the specified well-known capability by removing it from the set, preventing MailKit from making use of the corresponding feature.
Capabilities can only be disabled, they cannot be enabled. Disabling a capability does not affect the raw list of capability atoms advertised by the server (see Names).