LanguageService::IVsFormatFilterProvider::CurFileExtensionFormat Method (String^, UInt32)
Visual Studio 2015
Returns the index into the file extension list that matches the extension of the specified file name.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
private: virtual int CurFileExtensionFormat( String^ bstrFileName, [OutAttribute] unsigned int% pdwExtnIndex ) sealed = IVsFormatFilterProvider::CurFileExtensionFormat
Parameters
- bstrFileName
-
Type:
System::String^
[in] The file name from which to get the extension to look for.
- pdwExtnIndex
-
Type:
System::UInt32
[out] Returns the index into the extension list that references the extension on the given file name. Returns 0 if the extension is not in the list (0 represents "All files").
This is used to select the appropriate filter when showing a Save As dialog box to save a file.
The base method calls LanguageService::CurFileExtensionFormat to determine the index. Note that the base method translates a -1 return value to a 0 index.
Show: