Constable Authorization Engine 2.0 BETA

RuleCollectionBase.LookupInternal Method (NamedObjectBase, Role, State, VisibleOption, EnabledOption)

[This is preliminary documentation and subject to change.]

Finds all rule objects satisfying the specified criteria.

[Visual Basic]
Overridable Overloads Protected Function LookupInternal( _
   ByVal protectedObject As NamedObjectBase, _
   ByVal role As Role, _
   ByVal state As State, _
   ByVal visible As VisibleOption, _
   ByVal enabled As EnabledOption _
) As RuleCollectionBase
[C#]
protected virtual RuleCollectionBase LookupInternal(
   NamedObjectBase protectedObject,
   Role role,
   State state,
   VisibleOption visible,
   EnabledOption enabled
);

Parameters

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

Return Value

A collection of rule objects satisfying the search criteria.

Remarks

Passing a null reference (Nothing in Visual Basic) as a value of the protectedObject, 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 authorization rules regardless of their Role property values.

See Also

RuleCollectionBase Class | LaMarvin.Constable.Model Namespace | RuleCollectionBase.LookupInternal Overload List