Edit

Share via


GacIdentityPermission Constructors

Definition

Initializes a new instance of the GacIdentityPermission class.

Overloads

GacIdentityPermission()

Initializes a new instance of the GacIdentityPermission class.

GacIdentityPermission(PermissionState)

Initializes a new instance of the GacIdentityPermission class with fully restricted PermissionState.

GacIdentityPermission()

Source:
GacIdentityPermission.cs
Source:
GacIdentityPermission.cs
Source:
GacIdentityPermission.cs
Source:
GacIdentityPermission.cs
Source:
GacIdentityPermission.cs

Initializes a new instance of the GacIdentityPermission class.

public:
 GacIdentityPermission();
public GacIdentityPermission();
Public Sub New ()

Remarks

This constructor creates a GacIdentityPermission with a PermissionState value of None.

Applies to

GacIdentityPermission(PermissionState)

Source:
GacIdentityPermission.cs
Source:
GacIdentityPermission.cs
Source:
GacIdentityPermission.cs
Source:
GacIdentityPermission.cs
Source:
GacIdentityPermission.cs

Initializes a new instance of the GacIdentityPermission class with fully restricted PermissionState.

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

Parameters

state
PermissionState

One of the PermissionState values.

Exceptions

state is not a valid PermissionState value.

Remarks

Note

Starting with .NET Framework version 2.0, identity permissions can have any permission state value. This means that identity permissions have the same behavior as permissions that implement the IUnrestrictedPermission interface.

Applies to