Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreatePermission Method
Collapse the table of content
Expand the table of content

GacIdentityPermissionAttribute.CreatePermission Method

Creates a new GacIdentityPermission object.

Namespace:  System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public override IPermission CreatePermission()

Return Value

Type: System.Security.IPermission
A GacIdentityPermission that corresponds to this attribute.

This method should be called only 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 returned by this method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft