RemoteEndPoint Property

SocketAsyncEventArgs.RemoteEndPoint Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the remote IP or DNS endpoint for an asynchronous operation.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

public EndPoint RemoteEndPoint { get; set; }

Property Value

Type: System.Net.EndPoint
The remote IP endpoint for an asynchronous operation.

This property specifies the remote endpoint to which to connect using the Socket.ConnectAsync method. The remote endpoint can be set to a System.Net.IPEndPoint or a System.Net.DnsEndPoint. The remote endpoint specified by this property can include an IPv4 or IPv6 address.

This property must be set before calling the Socket.ConnectAsync method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft