| MailServiceConnectAsync(Uri, CancellationToken) Method |
Asynchronously establish a connection to the specified mail server.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax public Task ConnectAsync(
Uri uri,
CancellationToken cancellationToken = default
)
Parameters
- uri Uri
- The server URI.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Exceptions Remarks
Asynchronously establishes a connection to the specified mail server.
See Also