Modifica

Condividi tramite


StorePermission Constructors

Definition

Initializes a new instance of the StorePermission class.

Overloads

StorePermission(PermissionState)

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

StorePermission(StorePermissionFlags)

Initializes a new instance of the StorePermission class with the specified access.

StorePermission(PermissionState)

Source:
StorePermission.cs
Source:
StorePermission.cs
Source:
StorePermission.cs
Source:
StorePermission.cs

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

public:
 StorePermission(System::Security::Permissions::PermissionState state);
public StorePermission (System.Security.Permissions.PermissionState state);
new System.Security.Permissions.StorePermission : System.Security.Permissions.PermissionState -> System.Security.Permissions.StorePermission
Public Sub New (state As PermissionState)

Parameters

state
PermissionState

One of the PermissionState values.

Exceptions

state is not a valid PermissionState value.

Remarks

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.

Applies to

StorePermission(StorePermissionFlags)

Source:
StorePermission.cs
Source:
StorePermission.cs
Source:
StorePermission.cs
Source:
StorePermission.cs

Initializes a new instance of the StorePermission class with the specified access.

public:
 StorePermission(System::Security::Permissions::StorePermissionFlags flag);
public StorePermission (System.Security.Permissions.StorePermissionFlags flag);
new System.Security.Permissions.StorePermission : System.Security.Permissions.StorePermissionFlags -> System.Security.Permissions.StorePermission
Public Sub New (flag As StorePermissionFlags)

Parameters

flag
StorePermissionFlags

A bitwise combination of the StorePermissionFlags values.

Exceptions

flag is not a valid combination of StorePermissionFlags values.

Remarks

The flag parameter specifies the permitted access to X.509 stores. The specified permitted access applies to all stores. It is not possible to specify access to an individual store.

Applies to