[This is preliminary documentation and subject to change.]
Creates and adds a new PropertyRule object to the collection for the given propertyId, roleId and the one state defined for the containing AuthorizationPolicy instance.
A reference to the newly created PropertyRule.
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. |
PropertyRuleCollection Class | LaMarvin.Constable.Model Namespace | PropertyRuleCollection.AddNew Overload List