次の方法で共有


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx Method

Definition

Raised after files have been added to a project.

 virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx(int cProjects, int cFiles, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, cli::array <int> ^ rgFirstIndices, cli::array <System::String ^> ^ rgpszMkDocuments, cli::array <Microsoft::VisualStudio::Shell::Interop::VSADDFILEFLAGS> ^ rgFlags) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterAddFilesEx;
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx(int cProjects, int cFiles, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject ^> ^ rgpProjects, Platform::Array <int> ^ rgFirstIndices, Platform::Array <Platform::String ^> ^ rgpszMkDocuments, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSADDFILEFLAGS> ^ rgFlags) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnAfterAddFilesEx;
int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx(int cProjects, int cFiles, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsProject const &> const & rgpProjects, std::Array <int> const & rgFirstIndices, std::Array <std::wstring const &> const & rgpszMkDocuments, std::Array <Microsoft::VisualStudio::Shell::Interop::VSADDFILEFLAGS> const & rgFlags);
int IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx (int cProjects, int cFiles, Microsoft.VisualStudio.Shell.Interop.IVsProject[] rgpProjects, int[] rgFirstIndices, string[] rgpszMkDocuments, Microsoft.VisualStudio.Shell.Interop.VSADDFILEFLAGS[] rgFlags);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSADDFILEFLAGS[] -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx : int * int * Microsoft.VisualStudio.Shell.Interop.IVsProject[] * int[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSADDFILEFLAGS[] -> int
Function OnAfterAddFilesEx (cProjects As Integer, cFiles As Integer, rgpProjects As IVsProject(), rgFirstIndices As Integer(), rgpszMkDocuments As String(), rgFlags As VSADDFILEFLAGS()) As Integer Implements IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx

Parameters

cProjects
Int32

The number of projects in the rgpProjects array.

cFiles
Int32

The number of files to be added.

rgpProjects
IVsProject[]

An array of IVsProject objects.

rgFirstIndices
Int32[]

An array of indices of the files that were affected.

rgpszMkDocuments
String[]

An array of paths of the files that were affected.

rgFlags
VSADDFILEFLAGS[]

An array of VSADDFILEFLAGS. May be null.

Returns

Microsoft.VisualStudio.NativeMethods.S_OK.

Implements

Remarks

Events are filtered so that they report only those related to this project. This is not required for flavoring, but it simplifies the work the derived classes have to do when subscribing to these events.

Applies to