IVsAggregatableProjectFactory.GetAggregateProjectType 方法

返回包含项类型 GUID 的字符串列表复合创建此项实例。应该返回自身的至少一个 GUID 项目类型 GUID。此方法是预期获取 GUID 列表从指定的文件。

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

语法

声明
Function GetAggregateProjectType ( _
    pszFilename As String, _
    <OutAttribute> ByRef pbstrProjTypeGuid As String _
) As Integer
int GetAggregateProjectType(
    string pszFilename,
    out string pbstrProjTypeGuid
)

参数

  • pszFilename
    类型:System.String
    [in] 包含项目类型 GUID 列表中文件的名称。
  • pbstrProjTypeGuid
    类型:System.String%
    [out] 对包含分号分隔字符串的指针分隔列表项类型 GUID,排序从外部到内部项的子类型。

返回值

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

备注

COM 签名

从 vsshell80.idl:

HRESULT IVsAggregatableProjectFactory::GetAggregateProjectType(
   [in] LPCOLESTR pszFilename,
   [out] BSTR *pbstrProjTypeGuid
);

.NET Framework 安全性

请参见

参考

IVsAggregatableProjectFactory 接口

Microsoft.VisualStudio.Shell.Interop 命名空间