Skip to content

IQuaternaryList.GetItemsBySecondaryIndex(string, TIndexKey) method

Defined in

Type: IQuaternaryList Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

IEnumerable<T> GetItemsBySecondaryIndex<TIndexKey>(string indexName, TIndexKey key) where TIndexKey : notnull

Summary: Retrieves all entities of type T that match the specified key in the given index.

Type parameters

NameDescription
TIndexKeyThe type of the key used to query the index. Must be non-nullable.

Parameters

NameTypeDescription
indexNamestring (opens in a new tab)The name of the index to query. Specifies which index to use for the lookup.
keyTIndexKeyThe key value to search for within the specified index. Must not be null.

Returns: IEnumerable (opens in a new tab) -- An enumerable collection of entities of type T that match the specified key. The collection is empty if no matching entities are found.