IVsStructuredFileIO::GetFormatList Method (String^, String^, String^)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetFormatList(
	String^ szEntityName,
	String^ szFileTypes,
	[OutAttribute] String^% ppszFormatList
)

Parameters

szEntityName
Type: System::String^

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

szFileTypes
Type: System::String^

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

ppszFormatList
Type: System::String^

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

Return Value

Type: System::Int32

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

From vsshell.idl:

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

 

Return to top
Show: