DocData.GetFormatList Method

Gets the list of supported document formats.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Public Function GetFormatList ( _
    <OutAttribute> ByRef formatList As String _
) As Integer
'使用
Dim instance As DocData
Dim formatList As String
Dim returnValue As Integer

returnValue = instance.GetFormatList(formatList)
public int GetFormatList(
    out string formatList
)
public:
virtual int GetFormatList(
    [OutAttribute] String^% formatList
) sealed
public final function GetFormatList(
    formatList : String
) : int

Parameters

  • formatList
    Type: System.String%

    The list of supported document formats.

Return Value

Type: System.Int32

S_OK if the method succeeds; otherwise, it returns an error code.

Implements

IPersistFileFormat.GetFormatList(String%)

Remarks

Supported document formats appear in the Save As dialog box.

This method implements the IPersistFileFormat interface.

Permissions

See Also

Reference

DocData Class

DocData Members

Microsoft.VisualStudio.Modeling.Shell Namespace