Udostępnij za pośrednictwem


IWebSocket.ConnectAsync(Uri) Method

Definition

Starts an asynchronous operation to connect to a remote network destination on a IWebSocket object.

public:
 IAsyncAction ^ ConnectAsync(Uri ^ uri);
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ConnectAsync(Uri const& uri);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ConnectAsync(System.Uri uri);
function connectAsync(uri)
Public Function ConnectAsync (uri As Uri) As IAsyncAction

Parameters

uri
Uri Uri

An absolute Uri for the server to connect to.

Returns

An asynchronous connect operation on a IWebSocket object.

Attributes

Applies to

See also