ClaimsPrincipalPermissionAttribute::CreatePermission Method ()

.NET Framework (current version)
 

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

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public:
virtual IPermission^ CreatePermission() override

Return Value

Type: System.Security::IPermission^

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

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.

.NET Framework
Available since 4.5
Return to top
Show: