System.Net.SocketPermission.AllPorts Field

Defines a constant that represents all ports.

Value: -1

Syntax

public const int AllPorts

Remarks

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

Requirements

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