IVsFormatFilterProvider.GetFormatFilterList Method

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

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

Syntax

声明
Function GetFormatFilterList ( _
    <OutAttribute> ByRef pbstrFilterList As String _
) As Integer
用法
Dim instance As IVsFormatFilterProvider
Dim pbstrFilterList As String
Dim returnValue As Integer

returnValue = instance.GetFormatFilterList(pbstrFilterList)
int GetFormatFilterList(
    out string pbstrFilterList
)
int GetFormatFilterList(
    [OutAttribute] String^% pbstrFilterList
)
abstract GetFormatFilterList : 
        pbstrFilterList:string byref -> int 
function GetFormatFilterList(
    pbstrFilterList : String
) : int

Parameters

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsFormatFilterProvider Interface

IVsFormatFilterProvider Members

Microsoft.VisualStudio.TextManager.Interop Namespace