共用方式為


IVsAsyncSolution.SaveSolutionElementAsync Method

Definition

Saves a solution element asynchronously.

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

Parameters

saveOpts
UInt32

The save options.

hierarchy
IVsHierarchy

The hierarchy.

docCookie
UInt32

The document cookie.

progress
IVsProgress

The interface through which progress is reported.

Returns

A task representing the asynchronous operation.

Remarks

This method is safe to access from any thread.

Applies to