Application of Settings Across Multiple Project Connections

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

A source control plug-in built using the Source Control Plug-in API 1.2, can use a batch operation to execute the same source control operation across multiple projects or multiple connection contexts. Batches can be used to eliminate redundant, per-project dialog boxes from the user experience.

If a user selects multiple items that belong to more than one connection in a source control plug-in built using the Source Control Plug-in API 1.1, (for example, two Web projects on different file-share machines) and checks them out, the user sees the same dialog box repeatedly. This happens even if the user clicks the Apply to All check box in the dialog box, because the IDE resets its state for each connection context.

New Capability Flag

SccBeginBatch Function sets the SCC_CAP_BATCH flag to indicate that a batch operation is in progress

New Functions

The following new functions support the batch operation:

  • SccBeginBatch

  • SccEndBatch

    The SCCBeginBatch function starts a group of source control operations. SccEndBatch closes the group. The groups may not be nested.

See Also

What's New in the Source Control Plug-in API Version 1.2