ClaimsPrincipalPermissionAttribute.CreatePermission Method
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.
Creates new instance of the ClaimsPrincipalPermission class that is based on the current instance.
public:
override System::Security::IPermission ^ CreatePermission();
public override System.Security.IPermission CreatePermission ();
override this.CreatePermission : unit -> System.Security.IPermission
Public Overrides Function CreatePermission () As IPermission
Returns
A ClaimsPrincipalPermission with the operation and resource associated with this instance.
Remarks
The ClaimsPrincipalPermission object is created by using the value of the Operation property and the Resource property. You must 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.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om