'Declaration Public Overloads Function Add( _ ByVal keySelector As LambdaExpression, _ ByVal keyIsUnique As Boolean, _ ByVal onlyOnce As Boolean, _ ByVal algorithm As IndexingAlgorithm, _ ByVal locale As CultureInfo _ ) As Subindex(Of T)
public Subindex<T> Add( LambdaExpression keySelector, bool keyIsUnique, bool onlyOnce, IndexingAlgorithm algorithm, CultureInfo locale )
Parameters
- keySelector
- Key selector expression of the subindex, see KeySelector.
- keyIsUnique
- Specifies whether the key used in this subindex is unique for any given value of the parent key (default: false).
- onlyOnce
- Specifies whether it is required that the subindex does not exist prior to this method call. If a subindex with this keySelector already exists, an exception is thrown if it is true, and this method call is ignored if it is false.
- algorithm
- An IndexingAlgorithm used by the subindex. In the current version, only one algorithm is supported, RedBlackTree. Later versions may support other algorithms, such as bitmap or hash indexing.
- locale
- Locale information used to compare strings in the subindex (default: CultureInfo.CurrentCulture).
Return Value
The new subindex added to its parent's IndexDefinition<T>.Subindexes collection.