SmtpCapabilitiesGetValues Method

Get the values advertised for the specified extension keyword.

Definition

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public IReadOnlyList<string> GetValues(
	string key
)

Parameters

key  String
The extension keyword (e.g. "AUTH" or "SIZE").

Return Value

IReadOnlyListString
The values advertised for the extension keyword or an empty list if there were none.

Remarks

Gets the parameters advertised by the server for the specified extension keyword. For example, if the server advertised "AUTH PLAIN LOGIN", then GetValues ("AUTH") would return "PLAIN" and "LOGIN".

This method is not affected by Disable(SmtpCapability).

Exceptions

See Also