ConnectAsync | connectAsync methods

DatagramSocket.ConnectAsync | connectAsync methods

Starts a connect operation on a DatagramSocket to a remote destination.

Overload list

MethodDescription
ConnectAsync(EndpointPair) Starts a connect operation on a DatagramSocket to a remote network destination specified as an EndpointPair object.
ConnectAsync(HostName, String) Starts a connect operation on a DatagramSocket to a remote destination specified by a remote hostname and a remote service name.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

DatagramSocket
DatagramSocket sample (Windows 10)

 

 

Show:
© 2016 Microsoft