IVsAggregatableProject.GetAggregateProjectTypeGuids 方法

获取项目类型组成复合项目的 GUID 列表。应将此方法将在合成项目子类型系统中的最内层的项目。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
Function GetAggregateProjectTypeGuids ( _
    <OutAttribute> ByRef pbstrProjTypeGuids As String _
) As Integer
int GetAggregateProjectTypeGuids(
    out string pbstrProjTypeGuids
)

参数

  • pbstrProjTypeGuids
    类型:System.String%
    [out, retval] 到包含项目类型 GUID 的字符串的指针。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell80.idl:

HRESULT IVsAggregatableProject::GetAggregateProjectTypeGuids(
   [out] BSTR *pbstrProjTypeGuids
);

项类型 GUID 为分号分隔的列表项工厂 GUID 按照从最外面的项目子类型的摘要的顺序到最内层项目的子类型。此列表还包括内层 (基) 项目 GUID。这在其项目文件列出了最内层的项目管理和保存。

说明说明

保留在项目文件中个基本项目 GUID 并不是必需的。最内层的基项目也可以选择在保持和隐式添加之前去除自己的 GUID,当检索 GUID 列表时。

.NET Framework 安全性

请参见

参考

IVsAggregatableProject 接口

Microsoft.VisualStudio.Shell.Interop 命名空间