Mono Class Library: System.Security.Permissions.SecurityAttribute Overview | MembersSystem.Security.Permissions.SecurityAttribute.CreatePermission Method |
Returns a System.Security.IPermission object that contains the security information of the current instance. [Edit]
|
A System.Security.IPermission object. [Edit]
Operation
Returns an instance of the permission type that corresponds to the current attribute. The returned object contains the security information of the current attribute.Note to Inheritors
Override this method to create an instance of the permission type that corresponds to the current attribute. For example, the CreatePermission implementation of System.Security.Permissions.SecurityPermissionAttribute creates an instance of the System.Security.Permissions.SecurityPermission class.Usage
Security information specified using attributes is stored in metadata. The security information in the metadata is created using the permission object returned by this method.
[Edit]
Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0