[]
Represents a collection of subindexes attached to an IndexDefinition<T>.
public sealed class SubindexCollection<T> : IList<Subindex<T>>, ICollection<Subindex<T>>, IEnumerable<Subindex<T>>, IEnumerable
| Name | Description |
|---|---|
| T | The type of the elements of the collection to index. |
A Subindex<T, TKey> is attached to its parent index definition, which is an Index<T, TKey> or another Subindex<T, TKey>. The subindexes collection is stored in the parent's Subindexes property.
Subindexes are optional, not required for any indexing tasks, but can provide additional optimization and help minimize memory requirements when a collection is indexed by multi-level (multi-field) keys.
| Name | Description |
|---|---|
| Count | Gets the number of subindexes in the collection. |
| this[int] | Gets the subindex object at the specified ordinal position in the collection. |
| Name | Description |
|---|---|
| Add(LambdaExpression, bool, bool, IndexingAlgorithm, CultureInfo) | Creates a new subindex and attaches it to its parent's Subindexes collection. |
| Add<TKey>(Expression<Func<T, TKey>>) | Creates a new subindex and attaches it to its parent's Subindexes collection. |
| Add<TKey>(Expression<Func<T, TKey>>, bool) | Creates a new subindex and attaches it to its parent's Subindexes collection. |
| Add<TKey>(Expression<Func<T, TKey>>, bool, bool) | Creates a new subindex and attaches it to its parent's Subindexes collection. |
| Add<TKey>(Expression<Func<T, TKey>>, bool, bool, IndexingAlgorithm, CultureInfo) | Creates a new subindex and attaches it to its parent's Subindexes collection. |
| Add<TKey>(Expression<Func<T, TKey>>, bool, bool, CultureInfo) | Creates a new subindex and attaches it to its parent's Subindexes collection. |
| Clear() | Clears the collection of all subindexes. All subindexes are detached from the parent and destroyed. |
| Contains(LambdaExpression) | Determines whether a subindex with the specified key selector exists in the collection. |
| Contains<TKey>(Expression<Func<T, TKey>>) | Determines whether a subindex with the specified key selector exists in the collection. |
| Find(LambdaExpression) | Finds a subindex in the collection by its key selector. |
| Find<TKey>(Expression<Func<T, TKey>>) | Finds a subindex in the collection by its key selector. |
| GetEnumerator() | Returns an enumerator that iterates through the SubindexCollection<T>. |
| Remove(Subindex<T>) | Removes a subindex from the collection. |
| Remove(LambdaExpression) | Removes a subindex from the collection. |