ClaimsPrincipalPermissionAttribute.CreatePermission Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.