Pop 3CapabilitiesContains(String) Method
Check whether the server advertised the specified capability keyword.
Definition
Namespace: MailKit.Net.Pop3
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if the server advertised the capability keyword; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool Contains(
string name
)Parameters
- name String
- The capability keyword (e.g. "TOP").
Return Value
Booleanif the server advertised the capability keyword; otherwise, .
Remarks
Checks whether the server advertised the specified capability keyword, using a case-insensitive comparison.
The name must only be the capability keyword (e.g. "TOP") and must not include any of the capability parameters. To get the parameters, use GetValues(String).
This method is not affected by Disable(Pop3Capability).
Exceptions
| ArgumentNullException | name is . |