ImapCapabilitiesContains(String) Method

Check whether the server advertised the specified capability atom.

Definition

Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool Contains(
	string name
)

Parameters

name  String
The capability atom (e.g. "OBJECTID" or "SORT=DISPLAY").

Return Value

Boolean
if the server advertised the capability atom; otherwise, .

Remarks

Checks whether the server advertised the specified capability atom, using a case-insensitive comparison.

The name must match the entire capability atom, so atoms of the form NAME=VALUE such as "SORT=DISPLAY" must be specified in full. To get all of the values advertised for a particular key, use GetValues(String) instead.

This method is not affected by Disable(ImapCapability).

Exceptions

See Also