PatternCollection.Add Method
- Namespace
- Kampute.DocToolkit.Collections
- Assembly
- Kampute.DocToolkit.dll
Definition
Adds a pattern to the collection if it does not already exist.
public virtual bool Add(string pattern)Parameters
patternstring- The pattern to add to the collection.
Returns
Exceptions
- ArgumentException
- Thrown when
patternisnull, empty, or invalid.
Remarks
The pattern can be one of three types:
- Exact pattern–A pattern without any wildcard characters
- Wildcard pattern–A pattern ending with the separator character followed by the wildcard character
- Universal match–A single wildcard character that matches all values
