Imap CapabilitiesGet Values Method
Get the values advertised for the specified capability atom.
Definition
Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The values advertised for the capability atom or an empty list if there were none.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public IReadOnlyList<string> GetValues(
string key
)Parameters
- key String
- The capability atom key (e.g. "AUTH", "THREAD" or "RIGHTS").
Return Value
IReadOnlyListStringThe values advertised for the capability atom or an empty list if there were none.
Remarks
Gets the values of all of the capability atoms of the form KEY=VALUE advertised by the server for the specified key. For example, if the server advertised "AUTH=PLAIN AUTH=XOAUTH2", then GetValues ("AUTH") would return "PLAIN" and "XOAUTH2".
This method is not affected by Disable(ImapCapability).
Exceptions
| ArgumentNullException | key is . |