Constable Authorization Engine 2.0 BETA

AuthorizationPolicy.ExecuteAction Method (ActionRule)

[This is preliminary documentation and subject to change.]

Executes the Action associated with the given action authorization rule.

[Visual Basic]
Overridable Overloads Public Sub ExecuteAction( _
   ByVal actionRule As ActionRule _
)
[C#]
public virtual void ExecuteAction(
   ActionRule actionRule
);

Parameters

actionRule
The action authorization rule associated with the action that is to be executed.

Remarks

The "execution" of the action means that all the action authorization rules associated with the action are evaluated according to the CurrentPrincipal role membership and, if the actionRule is allowed, the CurrentState of the AuthorizationPolicy instance is set to the TargetState property value of the actionRule.

This overload is sometimes useful for non-deterministic authorization policies in that it allows to execute an action with more than one enabled authorization rule with different TargetStates.

Exceptions

Exception Type Condition
PermissionDeniedException The CurrentPrincipal is not allowed to execute the action.

See Also

AuthorizationPolicy Class | LaMarvin.Constable Namespace | AuthorizationPolicy.ExecuteAction Overload List