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
'Dichiarazione
Private Function GetRelatedSaveTreeItems ( _
saveItem As VSSAVETREEITEM, _
celt As UInteger, _
rgSaveTreeItems As VSSAVETREEITEM(), _
<OutAttribute> ByRef pcActual As UInteger _
) As Integer Implements IVsHasRelatedSaveItems.GetRelatedSaveTreeItems
'Utilizzo
Dim instance As DesignerDocDataService
Dim saveItem As VSSAVETREEITEM
Dim celt As UInteger
Dim rgSaveTreeItems As VSSAVETREEITEM()
Dim pcActual As UInteger
Dim returnValue As Integer
returnValue = CType(instance, IVsHasRelatedSaveItems).GetRelatedSaveTreeItems(saveItem, _
celt, rgSaveTreeItems, pcActual)
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.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.