Bewerken

Delen via


RemoteEndpointMessageProperty(String, Int32) Constructor

Definition

Initializes a new instance of the RemoteEndpointMessageProperty class for a specified IP address and port that identify the client from which the message was sent.

public:
 RemoteEndpointMessageProperty(System::String ^ address, int port);
public RemoteEndpointMessageProperty (string address, int port);
new System.ServiceModel.Channels.RemoteEndpointMessageProperty : string * int -> System.ServiceModel.Channels.RemoteEndpointMessageProperty
Public Sub New (address As String, port As Integer)

Parameters

address
String

The IP address of the remote endpoint associated with the message.

port
Int32

The port number of the remote endpoint associated with the message.

Exceptions

address is null or empty.

The port number is less than zero or greater than 65535 (0xffff).

Remarks

Be aware that the IP address and port could be spoofed by an attacker and thus should not be relied upon for security sensitive authentication or authorization unless additional application specific logic is added.

Applies to