Export (0) Print
Expand All

GacIdentityPermission Constructor

Initializes a new instance of the GacIdentityPermission class.

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

public GacIdentityPermission()

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

The following code example shows the use of the GacIdentityPermission() constructor.

GacIdentityPermission Gac1 = new GacIdentityPermission();
GacIdentityPermission Gac2 = new GacIdentityPermission(PermissionState.None);
if (Gac1.Equals(Gac2))
    Console.WriteLine("GacIdentityPermission() equals GacIdentityPermission(PermissionState.None).");

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft