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

  • celt
    Type: UInt32

    The number of documents to save.

  • pcActual
    Type: UInt32%

    [out] Returns the actual number of documents saved.

Return Value

Type: 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

IVsHasRelatedSaveItems.GetRelatedSaveTreeItems(VSSAVETREEITEM, UInt32, array<VSSAVETREEITEM[], UInt32%)

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

See Also

Reference

DesignerDocDataService Class

Microsoft.VisualStudio.Shell.Design.Serialization Namespace