IVsAggregatableProject.SetAggregateProjectTypeGuids 方法

此方法将更新该基项目的项目文件仍然存在 GUID 的列表。

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

语法

声明
Function SetAggregateProjectTypeGuids ( _
    lpstrProjTypeGuids As String _
) As Integer
int SetAggregateProjectTypeGuids(
    string lpstrProjTypeGuids
)

参数

  • lpstrProjTypeGuids
    类型:System.String
    包含项目类型 GUID 的字符串。

返回值

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

备注

COM 签名

从 vsshell80.idl:

HRESULT IVsAggregatableProject::SetAggregateProjectTypeGuids([in] LPCOLESTR lpstrProjTypeGuids);

调用此方法如果错误的项目文件。使用的一个常见模式是调用带有更新的 SetAggregateProjectTypeGuids 列表后跟保存项目,卸载然后重新加载实际上重新创建与新项摘要。

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

.NET Framework 安全性

请参见

参考

IVsAggregatableProject 接口

Microsoft.VisualStudio.Shell.Interop 命名空间