Constable Authorization Engine 2.0 BETA

PropertyRuleCollection.AddNew Method (String, String, String)

[This is preliminary documentation and subject to change.]

Creates and adds a new PropertyRule object to the collection.

[Visual Basic]
Overridable Overloads Public Function AddNew( _
   ByVal propertyId As String, _
   ByVal roleId As String, _
   ByVal stateId As String _
) As PropertyRule
[C#]
public virtual PropertyRule AddNew(
   string propertyId,
   string roleId,
   string stateId
);

Parameters

propertyId
The Id of the property to be associated with the newly created rule.
roleId
The Id of the role to be associated with the newly created rule.
stateId
The Id of the state to be associated with the newly created rule.

Return Value

Returns a reference to the newly created PropertyRule object.

Remarks

The string identifiers must refere to valid objects that are already contained in the Properties, Roles and States collections in the containgin AuthorizationPolicy instance.

See Also

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