ModelingDocData.GetRelatedSaveTreeItems 方法

IVsHasRelatedSaveItems 的标准实现。使用此实例,的 IRelatedDocList 接口如果另一 DocData 注册,它可能会返回作为 RelatedSaveTreeItem。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

语法

声明
Public Function GetRelatedSaveTreeItems ( _
    saveItem As VSSAVETREEITEM, _
    celt As UInteger, _
    rgSaveTreeItems As VSSAVETREEITEM(), _
    <OutAttribute> ByRef pcActual As UInteger _
) As Integer
public int GetRelatedSaveTreeItems(
    VSSAVETREEITEM saveItem,
    uint celt,
    VSSAVETREEITEM[] rgSaveTreeItems,
    out uint pcActual
)

参数

  • pcActual
    类型:System.UInt32%
    对相关项的数目保存的整数或元素数的指针在 rgSaveTreeItems 的

返回值

类型:System.Int32
指示成功或失败的 ErrorCode

实现

IVsHasRelatedSaveItems.GetRelatedSaveTreeItems(VSSAVETREEITEM, UInt32, array<VSSAVETREEITEM[], UInt32%)

备注

需要 Shell 将调用此操作。第一次,使用 NULL rgSaveTreeItems 和我们在 pcActual 需要返回项的数目保存。第二次, shell 将经过我们需要填充项目我们需要调用保存的初始化的早期 pcActual 范围。

.NET Framework 安全性

请参见

参考

ModelingDocData 类

Microsoft.VisualStudio.Modeling.Shell 命名空间