IVsTrackProjectDocuments3.OnQueryAddFilesEx(IVsProject, Int32, String[], String[], VSQUERYADDFILEFLAGS[], VSQUERYADDFILERESULTS[], VSQUERYADDFILERESULTS[]) Methode

Definition

Diese Methode ist eine erweiterte Version der OnQueryAddFiles(IVsProject, Int32, String[], VSQUERYADDFILEFLAGS[], VSQUERYADDFILERESULTS[], VSQUERYADDFILERESULTS[])-Methode und wird verwendet, wenn ein Projekt Dateien an eine neue Position im Projektverzeichnis verschiebt.

public:
 int OnQueryAddFilesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cFiles, cli::array <System::String ^> ^ rgpszNewMkDocuments, cli::array <System::String ^> ^ rgpszSrcMkDocuments, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILEFLAGS> ^ rgFlags, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILERESULTS> ^ pSummaryResult, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILERESULTS> ^ rgResults);
public:
 int OnQueryAddFilesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cFiles, Platform::Array <Platform::String ^> ^ rgpszNewMkDocuments, Platform::Array <Platform::String ^> ^ rgpszSrcMkDocuments, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILEFLAGS> ^ rgFlags, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILERESULTS> ^ pSummaryResult, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILERESULTS> ^ rgResults);
int OnQueryAddFilesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject const & pProject, int cFiles, std::Array <std::wstring const &> const & rgpszNewMkDocuments, std::Array <std::wstring const &> const & rgpszSrcMkDocuments, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILEFLAGS> const & rgFlags, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILERESULTS> const & pSummaryResult, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYADDFILERESULTS> const & rgResults);
public int OnQueryAddFilesEx (Microsoft.VisualStudio.Shell.Interop.IVsProject pProject, int cFiles, string[] rgpszNewMkDocuments, string[] rgpszSrcMkDocuments, Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILEFLAGS[] rgFlags, Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILERESULTS[] pSummaryResult, Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILERESULTS[] rgResults);
abstract member OnQueryAddFilesEx : Microsoft.VisualStudio.Shell.Interop.IVsProject * int * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILEFLAGS[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILERESULTS[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILERESULTS[] -> int
Public Function OnQueryAddFilesEx (pProject As IVsProject, cFiles As Integer, rgpszNewMkDocuments As String(), rgpszSrcMkDocuments As String(), rgFlags As VSQUERYADDFILEFLAGS(), pSummaryResult As VSQUERYADDFILERESULTS(), rgResults As VSQUERYADDFILERESULTS()) As Integer

Parameter

pProject
IVsProject

[in] Projekt, das die Anforderung zum Hinzufügen von Dateien enthält.

cFiles
Int32

in Die Anzahl der Dateien, die in rgpszNewMkDocuments den rgpszSrcMkDocuments Arrays,, und dargestellt werden rgFlags rgResults .

rgpszNewMkDocuments
String[]

[in] Ein Array von Dateinamen, die das endgültige Ziel der Dateien angeben.

rgpszSrcMkDocuments
String[]

[in] Ein Array von Dateinamen, die den Quellspeicherort der Dateien angeben.

rgFlags
VSQUERYADDFILEFLAGS[]

[in] Ein Array von Werten aus der VSQUERYADDFILEFLAGS-Enumeration, das ein Element für jede Datei enthält.

pSummaryResult
VSQUERYADDFILERESULTS[]

[out] Gibt einen Gesamtfortschritt für alle Dateien als Wert aus der VSQUERYADDFILERESULTS- Enumeration zurück.

rgResults
VSQUERYADDFILERESULTS[]

[in, out] Ein Array, das mit dem Status jeder Datei gefüllt wird. Jeder Status ist ein Wert aus der VSQUERYADDFILERESULTS-Enumeration.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Aus ivstrackprojectdocumentsevents80. idl

HRESULT OnQueryAddFilesEx(  
   [in] IVsProject *pProject,  
   [in] int cFiles,  
   [in, size_is(cFiles)] const LPCOLESTR rgpszNewMkDocuments[],  
   [in, size_is(cFiles)] const LPCOLESTR rgpszSrcMkDocuments[],  
   [in, size_is(cFiles)] const VSQUERYADDFILEFLAGS rgFlags[],  
   [out] VSQUERYADDFILERESULTS *pSummaryResult,  
   [out, size_is(cFiles)] VSQUERYADDFILERESULTS rgResults[]  
);  

Diese Methode wird von Verzeichnis basierten Projekten verwendet, die Dateien nach der Extraktion aus der Quell Code Verwaltung verschieben, sodass der endgültige Speicherort der Dateien möglicherweise unterschiedlich ist.

Gilt für