Resource Property
Collapse the table of content
Expand the table of content

ClaimsPrincipalPermissionAttribute.Resource Property

.NET Framework (current version)
 

Gets or sets the resource on which the principal should be authorized to perform the specified action (operation).

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public string Resource { get; set; }

Property Value

Type: System.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.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft