System.Security.Permissions.KeyContainerPermissionAttribute Class

Allows security actions for System.Security.Permissions.KeyContainerPermission to be applied to code using declarative security. This class cannot be inherited.

See Also: KeyContainerPermissionAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.All, AllowMultiple=true, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class KeyContainerPermissionAttribute : CodeAccessSecurityAttribute

Remarks

The scope of the declaration that is allowed depends on the System.Security.Permissions.SecurityAction value that is used.

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. System.Security.Permissions.KeyContainerPermissionAttribute is used only for declarative security. For imperative security, use the System.Security.Permissions.KeyContainerPermission class.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0