ImapCapabilitiesDisable Method

Disable the specified well-known capability.

Definition

Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool Disable(
	ImapCapability capability
)

Parameters

capability  ImapCapability
The capability to disable.

Return Value

Boolean
if 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).

  Note

The capabilities are reset each time they are re-read from the server.

See Also