IVsAsyncPersistHierarchyItem.SaveItemAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
This method must be accessed on the main thread.