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