IVsStructuredFileIO.GetFormatList(String, String, String) Method

Definition

Returns the format list for the file types supported by your VSPackage.

C++/WinRT
int GetFormatList(std::wstring const & szEntityName, std::wstring const & szFileTypes, [Runtime::InteropServices::Out] std::wstring const & & ppszFormatList);

Parameters

szEntityName
String

[in] Null-terminated string containing the entity name, for example, "Distribution Unit Project File" or "VB Project File.".

szFileTypes
String

[in] Null-terminated string containing the file types. This is a semicolon-separated list of file extensions.

ppszFormatList
String

[out] Specifies the location in which the file format list will be stored.

Returns

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

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsStructuredFileIO::GetFormatList(  
   [in] LPCOLESTR szEntityName,  
   [in] LPCOLESTR szFileTypes,  
   [out] LPOLESTR *ppszFormatList  
);  

Applies to

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