共用方式為


IVsTrackProjectDocuments2.Flush Method

This method displays the UI for the IVsTrackProjectDocuments2 calls completed so far without ending the batch.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣告
Function Flush As Integer
'用途
Dim instance As IVsTrackProjectDocuments2
Dim returnValue As Integer

returnValue = instance.Flush()
int Flush()
int Flush()
abstract Flush : unit -> int 
function Flush() : int

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From IVsTrackProjectDocuments2.idl

HRESULT Flush();

IVsTrackProjectDocuments2.Flush allows projects to display the UI for the IVsTrackProjectDocuments2.OnAfter* methods called since the start of the batch. Unlike EndBatch, IVsTrackProjectDocuments2.Flush does not actually end the batch. This allows the project to continue batching without ending the batch.

注意

You can batch only OnAfter* methods. OnQuery* methods cannot be batched.

.NET Framework Security

See Also

Reference

IVsTrackProjectDocuments2 Interface

IVsTrackProjectDocuments2 Members

Microsoft.VisualStudio.Shell.Interop Namespace