Share via


IVsAsyncPersistHierarchyItem.SaveItemAsync Method

Definition

Saves a hierarchy item, asynchronously.

public Microsoft.VisualStudio.Shell.Interop.IVsTask SaveItemAsync (Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS flags, string silentSaveAsName, uint itemid, object docData, Microsoft.VisualStudio.Shell.Interop.IVsProgress? progress);
abstract member SaveItemAsync : Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS * string * uint32 * obj * Microsoft.VisualStudio.Shell.Interop.IVsProgress -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function SaveItemAsync (flags As VSSAVEFLAGS, silentSaveAsName As String, itemid As UInteger, docData As Object, progress As IVsProgress) As IVsTask

Parameters

flags
VSSAVEFLAGS

The save flags.

silentSaveAsName
String

The file name to be applied when flags is set to VSSAVE_SilentSave.

itemid
UInt32

The ID of the hierarchy item to be saved.

docData
Object

The document data of the item to be saved.

progress
IVsProgress

The interface through which progress is reported.

Returns

A task representing the asynchronous operation. The result of the returned task will be IVsAsyncSaveResult. The FileName property is unused.

Remarks

Implementers should be prepared for this method to be called on any thread.

Applies to