[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.
This overload is available only if the containing AuthorizationPolicy instance has exactly one state defined.
| Exception Type | Condition |
|---|---|
| InvalidOperationException | The containing AuthorizationPolicy doesn't have exactly one state defined. |
ActionRuleCollection Class | LaMarvin.Constable.Model Namespace | ActionRuleCollection.AddNew Overload List