 | ClientBaseConnectAsync(IPAddress, Int32, Boolean, CancellationToken) Method |
Establishes connection to a remote server.
Namespace: Limilabs.ClientAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task ConnectAsync(
IPAddress ipAddress,
int port,
bool useSSL,
CancellationToken cancel = default
)
Public Function ConnectAsync (
ipAddress As IPAddress,
port As Integer,
useSSL As Boolean,
Optional cancel As CancellationToken = Nothing
) As Task
public:
Task^ ConnectAsync(
IPAddress^ ipAddress,
int port,
bool useSSL,
CancellationToken cancel = CancellationToken()
)
member ConnectAsync :
ipAddress : IPAddress *
port : int *
useSSL : bool *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task Parameters
- ipAddress IPAddress
- IP address.
- port Int32
- The port number of the remote server.
- 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