Constable Authorization Engine 2.0 BETA

RuleCollectionBase.IsNewRuleValid Method 

[This is preliminary documentation and subject to change.]

The method checks whether a new authorization rule defined by the parameters can be safely added to the collection.

[Visual Basic]
Public Function IsNewRuleValid( _
   ByVal protectedObject As NamedObjectBase, _
   ByVal role As Role, _
   ByVal state As State _
) As Boolean
[C#]
public bool IsNewRuleValid(
   NamedObjectBase protectedObject,
   Role role,
   State state
);

Parameters

protectedObject
A reference to an Action or a Property to be associated with the new authorization rule.
role
A reference to a Role to be associated with the new authorization rule.
state
A reference to a State to be associated with the new authorization rule.

Return Value

true if the authorization rule can be added to the collection; false otherwise.

See Also

RuleCollectionBase Class | LaMarvin.Constable.Model Namespace