次の方法で共有


SocketAsyncEventArgs.RemoteEndPoint Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Property RemoteEndPoint As EndPoint
public EndPoint RemoteEndPoint { get; set; }

Property Value

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.