MatchKindExtensions.AsPatternMatchKind(MatchKind) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Converts MatchKind to PatternMatchKind.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::VisualStudio::Text::PatternMatching::PatternMatchKind AsPatternMatchKind(Microsoft::VisualStudio::Language::NavigateTo::Interfaces::MatchKind source);
[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.Text.PatternMatching.PatternMatchKind AsPatternMatchKind (this Microsoft.VisualStudio.Language.NavigateTo.Interfaces.MatchKind source);
[<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 AsPatternMatchKind : Microsoft.VisualStudio.Language.NavigateTo.Interfaces.MatchKind -> Microsoft.VisualStudio.Text.PatternMatching.PatternMatchKind
<Extension()>
Public Function AsPatternMatchKind (source As MatchKind) As PatternMatchKind
Parameters
Returns
A subset of the PatternMatchKind enumeration that map to the possible values of MatchKind.
- Attributes
Remarks
Mapping: Exact maps to Exact. Prefix maps to Prefix. Substring maps to Substring. Regular maps to Fuzzy. None maps to null
.