IVsStructuredFileIO.GetFormatList(String, String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回 VSPackage 支持的文件类型的格式列表。
public:
int GetFormatList(System::String ^ szEntityName, System::String ^ szFileTypes, [Runtime::InteropServices::Out] System::String ^ % ppszFormatList);
int GetFormatList(std::wstring const & szEntityName, std::wstring const & szFileTypes, [Runtime::InteropServices::Out] std::wstring const & & ppszFormatList);
public int GetFormatList (string szEntityName, string szFileTypes, out string ppszFormatList);
abstract member GetFormatList : string * string * string -> int
Public Function GetFormatList (szEntityName As String, szFileTypes As String, ByRef ppszFormatList As String) As Integer
参数
- szEntityName
- String
中包含实体名称的以 Null 结尾的字符串,例如 "分布单元项目文件" 或 "VB 项目文件"。
- szFileTypes
- String
中以 Null 结尾的字符串,其中包含文件类型。 这是一个以分号分隔的文件扩展名列表。
- ppszFormatList
- String
弄指定文件格式列表将存储到的位置。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsStructuredFileIO::GetFormatList(
[in] LPCOLESTR szEntityName,
[in] LPCOLESTR szFileTypes,
[out] LPOLESTR *ppszFormatList
);