Creates a new instance of the SocketPermission class that passes all demands or that fails all demands.
[Visual Basic] Overloads Public Sub New( _ ByVal State As PermissionState _ ) [C#] public SocketPermission( PermissionState State ); [C++] public: SocketPermission( PermissionState State ); [JScript] public function SocketPermission( State : PermissionState );
If State is Unrestricted than the SocketPermission instance will pass all demands. Any other value for State will result in a SocketPermission instance that will fail all demands.
SocketPermission Class | SocketPermission Members | System.Net Namespace | SocketPermission Constructor Overload List