ClaimsPrincipalPermissionAttribute Constructor (SecurityAction)

.NET Framework (current version)
 

Initializes a new instance of the ClaimsPrincipalPermissionAttribute class.

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

public:
ClaimsPrincipalPermissionAttribute(
	SecurityAction action
)

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
Return to top
Show: