Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft