System.Security.Permissions.PermissionSetAttribute.CreatePermissionSet Method

Creates and returns a new permission set based on this permission set attribute object.

Syntax

public System.Security.PermissionSet CreatePermissionSet ()

Returns

A new permission set.

Remarks

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

Attributes are used at compile time to convert security declarations to a serialized form in metadata. Declarative security data in metadata is created from the permission object that this method returns, which corresponds to this attribute instance.

Requirements

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