ClaimsPrincipalPermissionAttribute Constructor (SecurityAction)
.NET Framework (current version)
Initializes a new instance of the ClaimsPrincipalPermissionAttribute class.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
Parameters
- action
-
Type:
System.Security.Permissions::SecurityAction
One of the values that specifies the security actions that can be performed when using declarative security.
You must also 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
Available since 4.5
Show: