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
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: