แก้ไข

แชร์ผ่าน


SocketPermissionAttribute.Port Property

Definition

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