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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de