Constable Authorization Engine 2.0 BETA

ActionRuleCollection.AddNew Method (String, String)

[This is preliminary documentation and subject to change.]

Creates and adds a new ActionRule object to the collection for the given actionId, roleId and the one state defined for the containing AuthorizationPolicy instance.

[Visual Basic]
Overloads Public Function AddNew( _
   ByVal actionId As String, _
   ByVal roleId As String _
) As ActionRule
[C#]
public ActionRule AddNew(
   string actionId,
   string roleId
);

Parameters

actionId
roleId

Return Value

Remarks

This overload is available only if the containing AuthorizationPolicy instance has exactly one state defined.

Exceptions

Exception Type Condition
InvalidOperationException The containing AuthorizationPolicy doesn't have exactly one state defined.

See Also

ActionRuleCollection Class | LaMarvin.Constable.Model Namespace | ActionRuleCollection.AddNew Overload List