AddRange

AddRange(IEnumerable<string>)

Adds the specified collection of words to this instance of the SpellingCorrector.

public void AddRange(IEnumerable<string> words)
Parameter Type Description
words IEnumerable`1 The collection of words to add to the dictionary.

Exceptions

exception condition
ArgumentNullException Thrown when words is null.
InvalidOperationException The index of the dictionary is disposed.

Remarks

A word that is null or empty, has more than 80 characters, or contains the characters U+0000, U+0001, tab, carriage return or line feed is not added; the ErrorOccurred event of the index reports the number of such words.

See Also


AddRange(string[])

Adds the specified collection of words to this instance of the SpellingCorrector.

public void AddRange(string[] words)
Parameter Type Description
words String[] The collection of words to add to the dictionary.

Exceptions

exception condition
ArgumentNullException Thrown when words is null.
InvalidOperationException The index of the dictionary is disposed.

Remarks

A word that is null or empty, has more than 80 characters, or contains the characters U+0000, U+0001, tab, carriage return or line feed is not added; the ErrorOccurred event of the index reports the number of such words.

See Also