RemoteEndpointMessageProperty(String, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για