DesignerDocDataService.IVsHasRelatedSaveItems.GetRelatedSaveTreeItems Method
Coordinates save operations across the documents maintained by this service.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Private Function GetRelatedSaveTreeItems ( _
saveItem As VSSAVETREEITEM, _
celt As UInteger, _
rgSaveTreeItems As VSSAVETREEITEM(), _
<OutAttribute> ByRef pcActual As UInteger _
) As Integer Implements IVsHasRelatedSaveItems.GetRelatedSaveTreeItems
int IVsHasRelatedSaveItems.GetRelatedSaveTreeItems(
VSSAVETREEITEM saveItem,
uint celt,
VSSAVETREEITEM[] rgSaveTreeItems,
out uint pcActual
)
private:
virtual int GetRelatedSaveTreeItems(
VSSAVETREEITEM saveItem,
unsigned int celt,
array<VSSAVETREEITEM>^ rgSaveTreeItems,
[OutAttribute] unsigned int% pcActual
) sealed = IVsHasRelatedSaveItems::GetRelatedSaveTreeItems
private abstract GetRelatedSaveTreeItems :
saveItem:VSSAVETREEITEM *
celt:uint32 *
rgSaveTreeItems:VSSAVETREEITEM[] *
pcActual:uint32 byref -> int
private override GetRelatedSaveTreeItems :
saveItem:VSSAVETREEITEM *
celt:uint32 *
rgSaveTreeItems:VSSAVETREEITEM[] *
pcActual:uint32 byref -> int
JScript does not support explicit interface implementations.
Parameters
saveItem
Type: Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEMA VSSAVETREEITEM structure that specifies how the items are to be saves.
celt
Type: System.UInt32The number of documents to save.
rgSaveTreeItems
Type: array<Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM[]An array of VSSAVETREEITEM structures.
pcActual
Type: System.UInt32%[out] Returns the actual number of documents saved.
Return Value
Type: System.Int32
If celt is either 0 or equal to pcActual, S_OK; if not, S_FALSE. If saveItem doesn't specify to close the documents, returns E_NOTIMPL.
Implements
Remarks
If celt is 0, no documents will be saved, and pcActual will contain the number of documents that should be saved. The most common usage of this method is to call it once to get the number of documents to save, and a second time (with the old pcActual as the new celt) to save the documents.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.