 | ClientBaseConnectAsync(IPEndPoint, Boolean, CancellationToken) Method |
Establishes connection to a remote server.
Namespace: Limilabs.ClientAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task ConnectAsync(
IPEndPoint ipEndPoint,
bool useSSL,
CancellationToken cancel = default
)
Public Function ConnectAsync (
ipEndPoint As IPEndPoint,
useSSL As Boolean,
Optional cancel As CancellationToken = Nothing
) As Task
public:
Task^ ConnectAsync(
IPEndPoint^ ipEndPoint,
bool useSSL,
CancellationToken cancel = CancellationToken()
)
member ConnectAsync :
ipEndPoint : IPEndPoint *
useSSL : bool *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task Parameters
- ipEndPoint IPEndPoint
- Network endpoint (IP address and port) of the connection.
- useSSL Boolean
- Creates SSL/TLS connection when set to true.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskA task that represents the asynchronous connect operation.
See Also