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