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
‘선언
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
)
Parameters
- saveItem
Type: Microsoft.VisualStudio.Shell.Interop.VSSAVETREEITEM
A VSSAVETREEITEM structure that specifies how the items are to be saves.
- celt
Type: System.UInt32
The 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.