ClaimsPrincipalPermissionAttribute.Resource Property
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
The resource on which the current principal should be authorized.
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.
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: