Freigeben über


PatternMatcherCreationOptions Constructor

Definition

Creates an instance of PatternMatcherCreationOptions.

public PatternMatcherCreationOptions (System.Globalization.CultureInfo cultureInfo, Microsoft.VisualStudio.Text.PatternMatching.PatternMatcherCreationFlags flags, System.Collections.Generic.IReadOnlyCollection<char> containerSplitCharacters = default);
new Microsoft.VisualStudio.Text.PatternMatching.PatternMatcherCreationOptions : System.Globalization.CultureInfo * Microsoft.VisualStudio.Text.PatternMatching.PatternMatcherCreationFlags * System.Collections.Generic.IReadOnlyCollection<char> -> Microsoft.VisualStudio.Text.PatternMatching.PatternMatcherCreationOptions
Public Sub New (cultureInfo As CultureInfo, flags As PatternMatcherCreationFlags, Optional containerSplitCharacters As IReadOnlyCollection(Of Char) = Nothing)

Parameters

cultureInfo
CultureInfo

Used to tailor character comparisons to the correct culture.

flags
PatternMatcherCreationFlags

A set of biniary options, used to control options like case-sensitivity.

containerSplitCharacters
IReadOnlyCollection<Char>

Characters that should be considered as describing a container/contained boundary. When matching types, this can be the '.' character e.g. Namespace.Class.Property, so that the search can tailor behavior to better match Property first, then Class, then Namespace. This also can work with directory separators in filenames and any other logical container/contained pattern in candidate strings.

null signifies no characters are container boundaries.

Applies to