ClaimsPrincipalPermissionAttribute(SecurityAction) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for