次の方法で共有


IVsAsyncRunningDocumentTable2.SaveDocumentsAsync Method

Definition

Saves one or more documents asynchronously.

public Microsoft.VisualStudio.Shell.Interop.IVsTask SaveDocumentsAsync (uint saveOpts, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy? hierarchy, uint itemid, uint docCookie, Microsoft.VisualStudio.Shell.Interop.IVsProgress? progress);
abstract member SaveDocumentsAsync : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsProgress -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function SaveDocumentsAsync (saveOpts As UInteger, hierarchy As IVsHierarchy, itemid As UInteger, docCookie As UInteger, progress As IVsProgress) As IVsTask

Parameters

saveOpts
UInt32

The save options

hierarchy
IVsHierarchy

The hierarchy that owns the document to save, or null. This parameter is only used if docCookie is VSCOOKIE_NIL and itemid is not VSITEMID_SELECTION. In that case, if this parameter is non-null, then the document identified by itemid is saved.

itemid
UInt32

The item identifier for the document to save, or VSITEMID_SELECTION. This parameter is only used if docCookie is VSCOOKIE_NIL. In that case, if this value is VSITEMID_SELECTION then all selected documents are saved. If this value is not VSITEMID_SELECTION and hierarchy is non-null, this value must be something other than VSITEMID_NIL.

docCookie
UInt32

The cookie for the document, or VSCOOKIE_NIL. If this parameter is not VSCOOKIE_NIL, hierarchy and itemid are ignored and the document identified by the cookie is saved.

progress
IVsProgress

The interface through which progress is reported.

Returns

A task representing the asynchronous operation

Implements

Applies to