IVsTrackProjectDocuments2.EndBatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method ends the batch started by BeginBatch() and displays any user interface (UI) that was generated within the batch.
public:
int EndBatch();
public:
int EndBatch();
int EndBatch();
public int EndBatch ();
abstract member EndBatch : unit -> int
Public Function EndBatch () As Integer
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From IVsTrackProjectDocuments2.idl
HRESULT EndBatch();
The IVsTrackProjectDocuments2 interface allows projects to tell the environment when a project item has been added, removed, or renamed. During these operations, UI is sometimes displayed. BeginBatch informs the environment that you are going to call several IVsTrackProjectDocuments2.OnAfter*
methods, and that you would like the user to receive only one UI display for those calls. Batching these calls using BeginBatch and IVsTrackProjectDocuments2.EndBatch
increases the likelihood that the environment will display only one UI display; however, this is not guaranteed.
Call BeginBatch to start the batch, make multiple IVsTrackProjectDocuments2 calls, and then call IVsTrackProjectDocuments2.EndBatch
to display the UI.
Note
You can batch only OnAfter*
methods. OnQuery*
methods cannot be batched.