Constable Authorization Engine 2.0 BETA

PropertyRuleCollection.Lookup Method (Property, Role, State, VisibleOption, EnabledOption)

[This is preliminary documentation and subject to change.]

Finds all PropertyRule objects satisfying the specified search criteria.

[Visual Basic]
Overridable Overloads Protected Function Lookup( _
   ByVal property As Property, _
   ByVal role As Role, _
   ByVal state As State, _
   ByVal visible As VisibleOption, _
   ByVal enabled As EnabledOption _
) As PropertyRuleCollection
[C#]
protected virtual PropertyRuleCollection Lookup(
   Property property,
   Role role,
   State state,
   VisibleOption visible,
   EnabledOption enabled
);

Parameters

property
The property that the returned property rules should be associated with.
role
The role that the returned property rules should be associated with.
state
The state that the returned property rules should be associated with.
visible
The required setting of the IsVisible property for the returned property rules.
enabled
The required setting of the IsEnabled property for the returned property rules.

Return Value

A collection of property rule objects satisfying the search criteria.

Remarks

Passing a null reference (Nothing in Visual Basic) as a value of the property, role or state argument means that the argument isn't part of the lookup criteria. For example passing a null reference (Nothing in Visual Basic) as a value of the role argument returns all property authorization rules regardless of their Role property values.

See Also

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