次の方法で共有


PatternMatch Constructors

Definition

Overloads

PatternMatch(PatternMatchKind, Boolean, Boolean)

Creates a PatternMatch object with an optional single span.

PatternMatch(PatternMatchKind, Boolean, Boolean, ImmutableArray<Span>)

Creates a PatternMatch object with a set of spans

PatternMatch(PatternMatchKind, Boolean, Boolean)

Creates a PatternMatch object with an optional single span.

public:
 PatternMatch(Microsoft::VisualStudio::Text::PatternMatching::PatternMatchKind resultType, bool punctuationStripped, bool isCaseSensitive);
public PatternMatch (Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind resultType, bool punctuationStripped, bool isCaseSensitive);
new Microsoft.VisualStudio.Text.PatternMatching.PatternMatch : Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind * bool * bool -> Microsoft.VisualStudio.Text.PatternMatching.PatternMatch
Public Sub New (resultType As PatternMatchKind, punctuationStripped As Boolean, isCaseSensitive As Boolean)

Parameters

resultType
PatternMatchKind

How is this match categorized?

punctuationStripped
Boolean

Was punctuation removed?

isCaseSensitive
Boolean

Was this a case sensitive match?

Applies to

PatternMatch(PatternMatchKind, Boolean, Boolean, ImmutableArray<Span>)

Creates a PatternMatch object with a set of spans

public:
 PatternMatch(Microsoft::VisualStudio::Text::PatternMatching::PatternMatchKind resultType, bool punctuationStripped, bool isCaseSensitive, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Text::Span> matchedSpans);
public PatternMatch (Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind resultType, bool punctuationStripped, bool isCaseSensitive, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Text.Span> matchedSpans);
new Microsoft.VisualStudio.Text.PatternMatching.PatternMatch : Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind * bool * bool * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Text.Span> -> Microsoft.VisualStudio.Text.PatternMatching.PatternMatch
Public Sub New (resultType As PatternMatchKind, punctuationStripped As Boolean, isCaseSensitive As Boolean, matchedSpans As ImmutableArray(Of Span))

Parameters

resultType
PatternMatchKind

How is this match categorized?

punctuationStripped
Boolean

Was punctuation removed?

isCaseSensitive
Boolean

Was this a case sensitive match?

matchedSpans
ImmutableArray<Span>

What spans of the candidate were matched? An empty array signifies no span information is given.

Applies to