Constable Authorization Engine 2.0 BETA

AuthorizationPolicy.ExecuteAction Method (Action)

[This is preliminary documentation and subject to change.]

Executes the specified Action.

[Visual Basic]
Overloads Public Sub ExecuteAction( _
   ByVal action As Action _
)
[C#]
public void ExecuteAction(
   Action action
);

Parameters

action
The action to be executed.

Remarks

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

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