Muokkaa

Jaa


ClaimsPrincipalPermissionAttribute.CreatePermission Method

Definition

Creates new instance of the ClaimsPrincipalPermission class that is based on the current instance.

public:
 override System::Security::IPermission ^ CreatePermission();
public override System.Security.IPermission CreatePermission ();
override this.CreatePermission : unit -> System.Security.IPermission
Public Overrides Function CreatePermission () As IPermission

Returns

A ClaimsPrincipalPermission with the operation and resource associated with this instance.

Remarks

The ClaimsPrincipalPermission object is created by using the value of the Operation property and the Resource property. You must specify the Operation and Resource properties in your ClaimsPrincipalPermissionAttribute declaration or an exception will be thrown when the CreatePermission method is invoked to create the permission.

Applies to