System.Security.Permissions.KeyContainerPermissionAttribute.CreatePermission Method

Creates and returns a new System.Security.Permissions.KeyContainerPermission.

Syntax

public override System.Security.IPermission CreatePermission ()

Returns

A System.Security.Permissions.KeyContainerPermission that corresponds to the attribute.

Remarks

This method should only be called by the security system, never by application code.

At compile time, attributes convert security declarations to a serialized form in metadata. The metadata is created from the permission object that this method returns.

Requirements

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