[This is preliminary documentation and is subject to change.]
Looks up an object in the IndexedList by key.
Parameters
- keyNum (Int32)
- The number of the key to use. These will be defined with an appropriate name in the generated code for the ObjectClass of the elements in the collection.
- key (Object)
- The key value.
Return Value
The object with this key, or null if none is found.
Remarks
This indexer creates Dictionary indexes on the fly if they don't
yet exist, and makes entries for every object in the list.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if the keyNum supplied
does not correspond to one of the valid key numbers for the
collection. |