System.Security.Permissions.EnvironmentPermissionAttribute.CreatePermission Method

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

Syntax

public override System.Security.IPermission CreatePermission ()

Returns

An System.Security.Permissions.EnvironmentPermission 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