Поделиться через


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

'Declaration
Function Flush As Integer
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.

Note

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

.NET Framework Security

See Also

Reference

IVsTrackProjectDocuments2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace