IVsRunningDocumentTable.SaveDocuments Method

Definition

Saves the documents.

C++/CX
public:
 int SaveDocuments(unsigned int grfSaveOpts, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int itemid, unsigned int docCookie);

Parameters

grfSaveOpts
UInt32

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

pHier
IVsHierarchy

[in] The IVsHierarchy interface that owns the document.

itemid
UInt32

[in] Item identifier of the saved documents. This is a unique identifier or it can be one of the following values: VSITEMID_NIL, VSITEMID_ROOT, or VSITEMID_SELECTION.

docCookie
UInt32

[in] Abstract value representing the saved documents.

Returns

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

Remarks

This method must be accessed on the main thread.

Applies to

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022