StorePermission Constructor (PermissionState)


Initializes a new instance of the StorePermission class with either fully restricted or unrestricted permission state.

Namespace:   System.Security.Permissions
Assembly:  System (in System.dll)

public StorePermission(
	PermissionState state


Type: System.Security.Permissions.PermissionState

One of the PermissionState values.

Exception Condition

state is not a valid PermissionState value.

The permission object provides either fully restricted (None) or Unrestricted access to X.509 stores. If fully restricted (None), the Flags property can then be set to specify the type of access allowed.

.NET Framework
Available since 2.0
Return to top