Constable Authorization Engine 2.0 BETA

NamedObjectCollectionBase.LookupItemById Method (String, Boolean)

[This is preliminary documentation and subject to change.]

Searches the collections and returns an object with the given Id.

[Visual Basic]
Overridable Overloads Public Function LookupItemById( _
   ByVal id As String, _
   ByVal throwIfNotFound As Boolean _
) As NamedObjectBase
[C#]
public virtual NamedObjectBase LookupItemById(
   string id,
   bool throwIfNotFound
);

Parameters

id
The Id of the object being searched.
throwIfNotFound
true to throw a ConstableException if the collection doesn't contain an object with the given . false to return a null reference (Nothing in Visual Basic).

Return Value

A reference to the object with the given , or a null reference (Nothing in Visual Basic) if the object cannot be found and the parameter is set to false.

See Also

NamedObjectCollectionBase Class | LaMarvin.Constable.Model Namespace | NamedObjectCollectionBase.LookupItemById Overload List