SocketPermission
Controls rights to make or accept connections on a transport address.
Defines a constant that represents all ports.
Gets a list of EndpointPermission instances that identifies the endpoints that can be accepted under this permission instance.
Gets a list of EndpointPermission instances that identifies the endpoints that can be connected to under this permission instance.
public SocketPermission(NetworkAccess access, TransportType transport, string hostName, int portNumber)
Initializes a new instance of the SocketPermission class for the given transport address with the specified permission.
Initializes a new instance of the SocketPermission class that allows unrestricted access to the Socket or disallows access to the Socket.
public void AddPermission(NetworkAccess access, TransportType transport, string hostName, int portNumber)
Adds a permission to the set of permissions for a transport address.
Checks the overall permission state of the object.