System.Security.Permissions.ZoneIdentityPermissionAttribute.CreatePermission Method

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

Syntax

public override System.Security.IPermission CreatePermission ()

Returns

A System.Security.Permissions.ZoneIdentityPermission that corresponds to this 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 that corresponds to this attribute.

Requirements

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