IVsLanguageInfo.GetFileExtensions(String) Method

Definition

Returns the file extensions belonging to this language.

C++/WinRT
int GetFileExtensions([Runtime::InteropServices::Out] std::wstring const & & pbstrExtensions);

Parameters

pbstrExtensions
String

[out] Returns a BSTR that contains the requested file extensions.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

cpp#
HRESULT IVsLanguageInfo::GetFileExtensions(  
   [out] BSTR * pbstrExtensions  
);  

If more than one language is returned, separate the file extensions with semicolons—for example, ".c;.cpp;.cxx;.h;.hpp;.hxx."

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022