DesignerDocDataService.IVsHasRelatedSaveItems.GetRelatedSaveTreeItems 方法

定义

跨此服务维护的文档协调保存操作。

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsHasRelatedSaveItems.GetRelatedSaveTreeItems(Microsoft::VisualStudio::Shell::Interop::VSSAVETREEITEM saveItem, System::UInt32 celt, cli::array <Microsoft::VisualStudio::Shell::Interop::VSSAVETREEITEM> ^ rgSaveTreeItems, [Runtime::InteropServices::Out] System::UInt32 % pcActual) = Microsoft::VisualStudio::Shell::Interop::IVsHasRelatedSaveItems::GetRelatedSaveTreeItems;
int IVsHasRelatedSaveItems.GetRelatedSaveTreeItems (Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM saveItem, uint celt, Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM[] rgSaveTreeItems, out uint pcActual);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsHasRelatedSaveItems.GetRelatedSaveTreeItems : Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM * uint32 * Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM[] * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsHasRelatedSaveItems.GetRelatedSaveTreeItems : Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM * uint32 * Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM[] * uint32 -> int
Function GetRelatedSaveTreeItems (saveItem As VSSAVETREEITEM, celt As UInteger, rgSaveTreeItems As VSSAVETREEITEM(), ByRef pcActual As UInteger) As Integer Implements IVsHasRelatedSaveItems.GetRelatedSaveTreeItems

参数

saveItem
VSSAVETREEITEM

一个 VSSAVETREEITEM 结构,指定如何保存项。

celt
UInt32

要保存的文档数。

rgSaveTreeItems
VSSAVETREEITEM[]

结构的数组 VSSAVETREEITEM

pcActual
UInt32

弄返回保存的实际文档数。

返回

Int32

如果 celt 为0或等于 pcActualS_OK 则为; 否则为 S_FALSE 。 如果 saveItem 未指定关闭文档,则返回 E_NOTIMPL

实现

适用于