System.Security.Permissions.DataProtectionPermissionAttribute.CreatePermission Method

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

Syntax

public override System.Security.IPermission CreatePermission ()

Returns

A System.Security.Permissions.DataProtectionPermission 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. Declarative security data in metadata is created from the permission that this method returns.

Requirements

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