Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)
[InterfaceTypeAttribute(1)] [GuidAttribute("53544C4D-9097-4325-9270-754EB85A6351")] public interface IVsTrackProjectDocuments3
/** @attribute InterfaceTypeAttribute(1) */ /** @attribute GuidAttribute("53544C4D-9097-4325-9270-754EB85A6351") */ public interface IVsTrackProjectDocuments3
The advanced version of the OnQueryAddFiles method supports projects that copy files to new locations within the project directory after extraction from source control.
The batch process methods must be balanced; that is, every call to themethod must be matched with a call to the method or the method. The batch process methods are used so that the user is presented with a single dialog box concerning the operation on all the files instead of multiple dialog boxes, one for each file. If any query says it is not okay to continue the operation, the CancelQueryBatch should be called to cancel the entire batch operation. Otherwise, if all queries indicate it is okay to continue, the EndQueryBatch method should be called. For example:
bool fRenameCanCont = false; pTrackProjectDocuments3.BeginQueryBatch(); QueryFolderRename(pFolderNode, strOldPath, strNewPath, fRenameCanCont); if (fRenameCanCont) pTrackProjectDocuments3.EndQueryBatch(&fRenameCanCont); else pTrackProjectDocuments3.CancelQueryBatch();
In this example, QueryFolderRename is assumed to be a user-defined helper function that causes a series of events to repeatedly call theNotes to Implementers This interface is implemented by Visual Studio source control package. Visual Studio routes calls to this interface to the currently active source control package if that package implements the method. interface.
This interface is not derived from theinterface, although it is normally implemented on the same object. The IVsTrackProjectDocuments3 interface can be obtained by asking for it from the service.