NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SocketPermission Constructor (PermissionState)

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
);

Parameters

State
One of the PermissionState values.

Remarks

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.

See Also

SocketPermission Class | SocketPermission Members | System.Net Namespace | SocketPermission Constructor Overload List