IVsStructuredFileIO.GetFormatList Method
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)
Syntax
'宣告
Function GetFormatList ( _
szEntityName As String, _
szFileTypes As String, _
<OutAttribute> ByRef ppszFormatList As String _
) As Integer
'用途
Dim instance As IVsStructuredFileIO
Dim szEntityName As String
Dim szFileTypes As String
Dim ppszFormatList As String
Dim returnValue As Integer
returnValue = instance.GetFormatList(szEntityName, _
szFileTypes, ppszFormatList)
int GetFormatList(
string szEntityName,
string szFileTypes,
out string ppszFormatList
)
int GetFormatList(
[InAttribute] String^ szEntityName,
[InAttribute] String^ szFileTypes,
[OutAttribute] String^% ppszFormatList
)
function GetFormatList(
szEntityName : String,
szFileTypes : String,
ppszFormatList : String
) : int
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.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsStructuredFileIO::GetFormatList(
[in] LPCOLESTR szEntityName,
[in] LPCOLESTR szFileTypes,
[out] LPOLESTR *ppszFormatList
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.