System.Net.SocketPermission Members

The members of System.Net.SocketPermission are listed below.

See Also: Inherited members from System.Security.CodeAccessPermission

Public Constructors

Initializes a new instance of the System.Net.SocketPermission class that allows unrestricted access to the System.Net.Sockets.Socket or disallows access to the System.Net.Sockets.Socket.

Initializes a new instance of the System.Net.SocketPermission class for the given transport address with the specified permission.

Public Fields

const
AllPortsint (-1).

Defines a constant that represents all ports.

Public Properties

[read-only]
AcceptListIEnumerator.

Gets a list of System.Net.EndpointPermission instances that identifies the endpoints that can be accepted under this permission instance.

[read-only]
ConnectListIEnumerator.

Gets a list of System.Net.EndpointPermission instances that identifies the endpoints that can be connected to under this permission instance.

Public Methods

AddPermission(NetworkAccess, TransportType, string, int)

Adds a permission to the set of permissions for a transport address.

override
Copy() : System.Security.IPermission

Creates a copy of a System.Net.SocketPermission instance.

override
FromXml(System.Security.SecurityElement)

Reconstructs a System.Net.SocketPermission instance for an XML encoding.

override
Intersect(System.Security.IPermission) : System.Security.IPermission

Returns the logical intersection between two System.Net.SocketPermission instances.

override
IsSubsetOf(System.Security.IPermission) : bool

Determines if the current permission is a subset of the specified permission.

IsUnrestricted() : bool

Checks the overall permission state of the object.

override
ToXml() : System.Security.SecurityElement

Creates an XML encoding of a System.Net.SocketPermission instance and its current state.

override
Union(System.Security.IPermission) : System.Security.IPermission

Returns the logical union between two System.Net.SocketPermission instances.