IVsFormatFilterProvider.GetFormatFilterList(String) Method

Definition

Provides the list of available extensions for the Save As dialog.

public:
 int GetFormatFilterList([Runtime::InteropServices::Out] System::String ^ % pbstrFilterList);
int GetFormatFilterList([Runtime::InteropServices::Out] std::wstring const & & pbstrFilterList);
public int GetFormatFilterList (out string pbstrFilterList);
abstract member GetFormatFilterList : string -> int
Public Function GetFormatFilterList (ByRef pbstrFilterList As String) As Integer

Parameters

pbstrFilterList
String

[out] The list of available extensions.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsFormatFilterProvider::GetFormatFilterList(  
   [out] BSTR *pbstrFilterList  
);  

If no filter is provided, the default filter string is "All Files (*.*)\n*.*\nText Files (*.txt)\n*.txt\n" This filter list should not contain the All Files filer or Text Files. These will be added by the environment.

Applies to