Bewerken

Share via


ClaimsPrincipalPermissionAttribute(SecurityAction) Constructor

Definition

Initializes a new instance of the ClaimsPrincipalPermissionAttribute class.

public:
 ClaimsPrincipalPermissionAttribute(System::Security::Permissions::SecurityAction action);
public ClaimsPrincipalPermissionAttribute (System.Security.Permissions.SecurityAction action);
new System.IdentityModel.Services.ClaimsPrincipalPermissionAttribute : System.Security.Permissions.SecurityAction -> System.IdentityModel.Services.ClaimsPrincipalPermissionAttribute
Public Sub New (action As SecurityAction)

Parameters

action
SecurityAction

One of the values that specifies the security actions that can be performed when using declarative security.

Remarks

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.

Applies to