SocketAsyncEventArgs.RemoteEndPoint Property

Definition

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

public:
 property System::Net::EndPoint ^ RemoteEndPoint { System::Net::EndPoint ^ get(); void set(System::Net::EndPoint ^ value); };
public System.Net.EndPoint RemoteEndPoint { get; set; }
public System.Net.EndPoint? RemoteEndPoint { get; set; }
member this.RemoteEndPoint : System.Net.EndPoint with get, set
Public Property RemoteEndPoint As EndPoint

Property Value

EndPoint

An EndPoint that represents the remote IP endpoint for an asynchronous operation.

Remarks

This property specifies the remote endpoint. This property can specify the remote endpoint to which to connect using the Socket.ConnectAsync method. This property can specify the remote endpoint to which to send data using Socket.SendToAsync method. This property can specify the remote endpoint from which data was received using the Socket.ReceiveFromAsync or Socket.ReceiveMessageFromAsync methods.

This remote endpoint specified by this property can include an IPv4 or IPv6 address.

This property is used with the Socket.ConnectAsync, Socket.ReceiveFromAsync, Socket.ReceiveMessageFromAsync, or Socket.SendToAsync methods.

Applies to

See also