MatchKindExtensions.AsMatchKind(PatternMatchKind) 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 PatternMatchKind to MatchKind.
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.