ClaimsPrincipalPermissionAttribute.Resource Property
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.
Gets or sets the resource on which the principal should be authorized to perform the specified action (operation).
public:
property System::String ^ Resource { System::String ^ get(); void set(System::String ^ value); };
public string Resource { get; set; }
member this.Resource : string with get, set
Public Property Resource As String
Property Value
The resource on which the current principal should be authorized.
Remarks
The resource on which the current principal should be authorized to perform the specified action. You must set the Resource
property in your ClaimsPrincipalPermissionAttribute declaration or an exception will be thrown when the CreatePermission method is called to create the permission.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för