다음을 통해 공유


IVsAsyncShell.SaveDocDataToFileAsync Method

Definition

Saves a docdata to a file asynchronously.

public Microsoft.VisualStudio.Shell.Interop.IVsTask SaveDocDataToFileAsync (Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS flags, object persistFile, string untitledPath, Microsoft.VisualStudio.Shell.Interop.IVsProgress? progress);
abstract member SaveDocDataToFileAsync : Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS * obj * string * Microsoft.VisualStudio.Shell.Interop.IVsProgress -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function SaveDocDataToFileAsync (flags As VSSAVEFLAGS, persistFile As Object, untitledPath As String, progress As IVsProgress) As IVsTask

Parameters

flags
VSSAVEFLAGS

The save flags.

persistFile
Object

The file in which the docdata is to be saved.

untitledPath
String

File path to which the doc data for an as-yet unsaved document is 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.

Remarks

This method must be accessed on the main thread.

Applies to