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)

int Flush()

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

System_CAPS_noteNote

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

Return to top
Show: