SocketPermissionAttribute.Port Property
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.
Gets or sets the port number that is associated with this SocketPermissionAttribute.
public:
property System::String ^ Port { System::String ^ get(); void set(System::String ^ value); };
public string Port { get; set; }
member this.Port : string with get, set
Public Property Port As String
Property Value
A string that contains the port number that is associated with this instance of SocketPermissionAttribute.
Exceptions
The Port property is null
when you attempt to set the value. To specify more than one port, use an additional attribute declaration statement.
Remarks
This property is write-once and specifies the port number to which this permission applies. The valid values are a string-encoded integer or the string "All".
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για