Click or drag to resize
MimeKit

Pop3ClientGetLanguagesAsync Method

Asynchronously get the list of languages supported by the POP3 server.

Namespace: MailKit.Net.Pop3
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
public Task<IList<Pop3Language>> GetLanguagesAsync(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskIListPop3Language
The supported languages.

Implements

IPop3ClientGetLanguagesAsync(CancellationToken)
Exceptions
ExceptionCondition
ObjectDisposedException The Pop3Client has been disposed.
ServiceNotConnectedException The Pop3Client is not connected.
OperationCanceledException The operation was canceled via the cancellation token.
NotSupportedException The POP3 server does not support the LANG extension.
IOException An I/O error occurred.
Pop3CommandException The POP3 command failed.
Pop3ProtocolException A POP3 protocol error occurred.
Remarks
If the POP3 server supports the LANG extension, it is possible to query the list of languages supported by the POP3 server that can be used for error messages.
See Also