Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property String^ Resource {
	String^ get();
	void set(String^ value);
}

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:
© 2017 Microsoft