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 = gcnew GacIdentityPermission;
GacIdentityPermission ^ Gac2 = gcnew GacIdentityPermission( PermissionState::None );
if ( Gac1->Equals( Gac2 ) )
         Console::WriteLine( "GacIdentityPermission() equals GacIdentityPermission(PermissionState.None)." );


.NET Framework
Available since 2.0
Return to top
Show: