Skip to content

QuaternaryList.GetItemsBySecondaryIndex(string, TIndexKey) method

Defined in

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

Applies to

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

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

View source (opens in a new tab)

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

Type parameters

NameDescription
TIndexKeyThe type of the key used to query the secondary index.

Parameters

NameTypeDescription
indexNamestring (opens in a new tab)The name of the secondary index to query.
keyTIndexKeyThe key value to search for within the specified index.

Returns: IEnumerable (opens in a new tab) -- An enumerable collection of entities that match the specified key, one entry per stored copy.

Exceptions

TypeCondition
System.ArgumentNullException (opens in a new tab)indexName is null.