IWebSocket.ConnectAsync Method

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

Syntax

public:
IAsyncAction^ ConnectAsync(
         Uri^ uri
)  

Parameters

uri
Type: Uri 

  An absolute Uri for the server to connect to.

Return value

Type: IAsyncAction 

Returns an IAsyncAction object that represents the state of the asynchronous operation. Completion of the asynchronous operation is signaled by using a handler that is passed to the IAsyncAction.Completed property.

Remarks

Requirements

Namespace: Windows.Networking.Sockets

Metadata: windows.winmd

See also

Reference

IWebSocket Interface

IWebSocket Members

Windows.Networking.Sockets Namespace