ClaimsPrincipalPermissionAttribute.Resource Property

Definition

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