 | MailServiceConnectAsync(Uri, CancellationToken) Method |
Asynchronously establish a connection to the specified mail server.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.10.0
Syntaxpublic 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