SocketPermission.AllPorts Field


Defines a constant that represents all ports.

Namespace:   System.Net
Assembly:  System (in System.dll)

static val mutable AllPorts : int

Field Value

Type: System.Int32

This field is read-only. The value of this field is -1.

The following example uses the AllPorts property to provide connection permissions to all of the resources ports.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top