ModelingDocData.GetRelatedSaveTreeItems 方法

IVsHasRelatedSaveItems 的标准实现。 使用带此实例的 IRelatedDocList 接口注册另一个 DocData,则它可能会以 RelatedSaveTreeItem 的形式返回。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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 调用两次。 据此,用空 rgSaveTreeItems 和要在 pcActual 需要返回项的数目。 再一次 shell,将通过我们需要填充:,其中的项填充。我们需要保存调用的初始化的旧 pcActual 大小。

.NET Framework 安全性

请参阅

参考

ModelingDocData 类

Microsoft.VisualStudio.Modeling.Shell 命名空间