ClaimsPrincipalPermissionAttribute::Operation Property

.NET Framework (current version)
 

Gets or sets the operation for which the current principal should be authorized on the specified resource.

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

public:
property String^ Operation {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The action for which the current principal should be authorized.

The operation is the action for which the current principal should be authorized on the specified resource. You must set the Operation 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: