Mono Class Library: System.Net.SocketPermissionAttribute Overview | Members

System.Net.SocketPermissionAttribute.Port Property

Gets or sets the port specified by the current instance. [Edit]

public string Port { set; get; }

Value

A string containing a port number, or "All" or -1 to indicate all ports. [Edit]

Exceptions

TypeReason
ArgumentExceptionSocketPermissionAttribute.Port is being set and is not null. [Edit]

Remarks

This property is write-once. Once this property has been set to a non-null value, attempts to set this property to new value cause a ArgumentException . [Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0