Mono Class Library: System.Security.Permissions.EnvironmentPermissionAttribute Overview | Members

System.Security.Permissions.EnvironmentPermissionAttribute.CreatePermission Method

Returns a new System.Security.Permissions.EnvironmentPermission that contains the security information of the current instance.

public override System.Security.IPermission CreatePermission ()

Returns

A new System.Security.Permissions.EnvironmentPermission object with the security information of the current instance.

Remarks

Note:

Applications typically do not call this method; it is intended for use by the system.

The security information described by a security attribute is stored in the metadata of the attribute target, and is accessed by the system at run-time. The system uses the object returned by this method to convert the security information of the current instance into the form stored in metadata.

This method overrides SecurityAttribute.CreatePermission.

Requirements

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