Dela via


IVsRunningDocumentTable.SaveDocuments Method

Saves the documents.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function SaveDocuments ( _
    grfSaveOpts As UInteger, _
    pHier As IVsHierarchy, _
    itemid As UInteger, _
    docCookie As UInteger _
) As Integer
int SaveDocuments(
    uint grfSaveOpts,
    IVsHierarchy pHier,
    uint itemid,
    uint docCookie
)
int SaveDocuments(
    [InAttribute] unsigned int grfSaveOpts, 
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] unsigned int itemid, 
    [InAttribute] unsigned int docCookie
)
abstract SaveDocuments : 
        grfSaveOpts:uint32 * 
        pHier:IVsHierarchy * 
        itemid:uint32 * 
        docCookie:uint32 -> int
function SaveDocuments(
    grfSaveOpts : uint, 
    pHier : IVsHierarchy, 
    itemid : uint, 
    docCookie : uint
) : int

Parameters

  • grfSaveOpts
    Type: UInt32

    [in] Save options whose values are taken from the __VSRDTSAVEOPTIONS enumeration.

  • docCookie
    Type: UInt32

    [in] Abstract value representing the saved documents.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocumentTable::SaveDocuments(
   [in] VSRDTSAVEOPTIONS  grfSaveOpts,
   [in] IVsHierarchy     *pHier,
   [in] VSITEMID          itemid,
   [in] VSCOOKIE          docCookie
);

The docCookie parameter is same value that is returned from the FindAndLockDocument or RegisterAndLockDocument methods.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable Interface

Microsoft.VisualStudio.Shell.Interop Namespace