Gets or sets the port number that is associated with this System.Net.SocketPermissionAttribute.
A string containing a port number, or "All" or -1 to indicate all ports.
Type Reason ArgumentException SocketPermissionAttribute.Port is being set and is not null.
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".