IVsTrackProjectDocuments4.OnQueryRemoveFilesEx(IVsProject, Int32, String[], UInt32[], VSQUERYREMOVEFILERESULTS[], VSQUERYREMOVEFILERESULTS[]) Méthode

Définition

Appelé par un projet pour déterminer si les fichiers peuvent être supprimés du projet.

public:
 int OnQueryRemoveFilesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cFiles, cli::array <System::String ^> ^ rgpszMkDocuments, cli::array <System::UInt32> ^ rgFlags, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYREMOVEFILERESULTS> ^ pSummaryResult, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYREMOVEFILERESULTS> ^ rgResults);
public:
 int OnQueryRemoveFilesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cFiles, Platform::Array <Platform::String ^> ^ rgpszMkDocuments, Platform::Array <unsigned int> ^ rgFlags, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYREMOVEFILERESULTS> ^ pSummaryResult, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYREMOVEFILERESULTS> ^ rgResults);
int OnQueryRemoveFilesEx(Microsoft::VisualStudio::Shell::Interop::IVsProject const & pProject, int cFiles, std::Array <std::wstring const &> const & rgpszMkDocuments, std::Array <unsigned int> const & rgFlags, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYREMOVEFILERESULTS> const & pSummaryResult, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYREMOVEFILERESULTS> const & rgResults);
public int OnQueryRemoveFilesEx (Microsoft.VisualStudio.Shell.Interop.IVsProject pProject, int cFiles, string[] rgpszMkDocuments, uint[] rgFlags, Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILERESULTS[] pSummaryResult, Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILERESULTS[] rgResults);
abstract member OnQueryRemoveFilesEx : Microsoft.VisualStudio.Shell.Interop.IVsProject * int * string[] * uint32[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILERESULTS[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILERESULTS[] -> int
Public Function OnQueryRemoveFilesEx (pProject As IVsProject, cFiles As Integer, rgpszMkDocuments As String(), rgFlags As UInteger(), pSummaryResult As VSQUERYREMOVEFILERESULTS(), rgResults As VSQUERYREMOVEFILERESULTS()) As Integer

Paramètres

pProject
IVsProject

[in] Projet contenant les fichiers à supprimer.

cFiles
Int32

[in] Nombre de fichiers à supprimer.

rgpszMkDocuments
String[]

[in, size_is(cFiles)] Tableau des chemins d'accès des fichiers à supprimer.

rgFlags
UInt32[]

[in, size_is(cFiles)] Tableau d'indicateurs. Pour obtenir la liste des valeurs rgFlags, consultez __VSQUERYREMOVEFILEFLAGS2.

pSummaryResult
VSQUERYREMOVEFILERESULTS[]

[out] Objet de synthèse des résultats. Cet objet est une somme des résultats Oui et non pour le tableau de fichiers transmis rgpszMkDocuments . Si le résultat d'un seul fichier a la valeur No, ce paramètre est égal à VSQUERYREMOVEFILERESULTS_RemoveNotOK ; si les résultats de tous les fichiers ont la valeur Yes, ce paramètre est égal à VSQUERYREMOVEFILERESULTS_RemoveOK. Pour obtenir la liste des valeurs pSummaryResult, consultez VSQUERYREMOVEFILERESULTS.

rgResults
VSQUERYREMOVEFILERESULTS[]

[out, size_is(cFiles)] Tableau de résultats. Si vous transmettez une référence null pour ce paramètre, seul le résultat du résumé est retourné ( pSummaryResult ). Pour obtenir la liste des valeurs rgResults, consultez VSQUERYREMOVEFILERESULTS.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

S’applique à