[]
Represents a collection of indexes or subindexes.
public abstract class ScannerCollection<T> : ICollection<IIndexScanner<T>>, IEnumerable<IIndexScanner<T>>, IEnumerable
Name | Description |
---|---|
T | The type of the elements of the indexed collection. |
Any indexed collection (implementing the IIndexedSource<T> interface) has a collection of indexes attached to it. ScannerCollection<T> is the base class for the collection of indexes, IndexCollection<T>
The ScannerCollection<T> class is also used in the Indexes property of the IndexQuery<T> class, the result of an indexing search operation such as Index.Find and others, where it contains subindexes.
Name | Description |
---|---|
Count | Gets the number of indexes in the collection. |
Name | Description |
---|---|
Add(LambdaExpression, bool, bool, IndexingAlgorithm, CultureInfo) | Creates a new index and adds it to the collection of indexes. |
Add<TKey>(Expression<Func<T, TKey>>) | Creates a new index and adds it to the collection of indexes. |
Add<TKey>(Expression<Func<T, TKey>>, bool) | Creates a new index and adds it to the collection of indexes. |
Add<TKey>(Expression<Func<T, TKey>>, bool, bool) | Creates a new index and adds it to the collection of indexes. |
Add<TKey>(Expression<Func<T, TKey>>, bool, bool, IndexingAlgorithm, CultureInfo) | Creates a new index and adds it to the collection of indexes. |
Add<TKey>(Expression<Func<T, TKey>>, bool, bool, CultureInfo) | Creates a new index and adds it to the collection of indexes. |
Clear() | Clears the collection of all indexes. All indexes are detached from the indexed collection and destroyed. |
Contains(LambdaExpression) | Determines whether an index with the specified key selector exists in the collection. |
Contains<TKey>(Expression<Func<T, TKey>>) | Determines whether an index with the specified key selector exists in the collection. |
Find(LambdaExpression) | Finds an index in the collection by its key selector. |
Find<TKey>(Expression<Func<T, TKey>>) | Finds an index in the collection by its key selector. |
GetEnumerator() | Returns an enumerator that iterates through the ScannerCollection<T>. |
Remove(LambdaExpression) | Removes an index from the collection. |
Remove<TKey>(Expression<Func<T, TKey>>) | Removes an index from the collection. |