Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AllPorts Field
Collapse the table of content
Expand the table of content

SocketPermission.AllPorts Field

Defines a constant that represents all ports.

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

static val mutable AllPorts: int

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft