MatchKindExtensions.AsMatchKind(PatternMatchKind) Method

Definition

Caution

This method is for backwards compatibility only, and will be removed when MatchKind is removed. Please actively convert code that calls this to use PatternMatch types instead.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Language::NavigateTo::Interfaces::MatchKind AsMatchKind(Microsoft::VisualStudio::Text::PatternMatching::PatternMatchKind other);
[System.Obsolete("This method is for backwards compatibility only, and will be removed when MatchKind is removed. Please actively convert code that calls this to use PatternMatch types instead.")]
public static Microsoft.VisualStudio.Language.NavigateTo.Interfaces.MatchKind AsMatchKind (this Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind other);
[<System.Obsolete("This method is for backwards compatibility only, and will be removed when MatchKind is removed. Please actively convert code that calls this to use PatternMatch types instead.")>]
static member AsMatchKind : Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind -> Microsoft.VisualStudio.Language.NavigateTo.Interfaces.MatchKind
<Extension()>
Public Function AsMatchKind (other As PatternMatchKind) As MatchKind

Parameters

other
PatternMatchKind

The PatternMatchKind to convert.

Returns

A member of the MatchKind enumeration.

Attributes

Remarks

Mapping: Exact maps to Exact. Prefix maps to Prefix. Substring maps to Substring. All other types map to Regular.

Note: No types return None as there is no analagy in PatternMatchKind.

Applies to