GacIdentityPermissionAttribute Constructor (SecurityAction)
Assembly: mscorlib (in mscorlib.dll)
The constructor calls the base class to validate the SecurityAction value.
The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. Use GacIdentityPermission for imperative security.
The following code example demonstrates the use of the GacIdentityPermissionAttribute class.constructor to demand that the calling program be in the global assembly cache. This example is part of a larger example provided for the
Available since 2.0