IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx Method (Int32, Int32, IVsProject[], Int32[], String[], VSADDFILEFLAGS[])

 

This method notifies the client after a project has added files.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int OnAfterAddFilesEx(
	int cProjects,
	int cFiles,
	IVsProject[] rgpProjects,
	int[] rgFirstIndices,
	string[] rgpszMkDocuments,
	VSADDFILEFLAGS[] rgFlags
)

Parameters

cProjects
Type: System.Int32

[in] Number of projects to which files were added.

cFiles
Type: System.Int32

[in] Number of files that were added.

rgpProjects
Type: Microsoft.VisualStudio.Shell.Interop.IVsProject[]

[in] Array of projects to which files were added.

rgFirstIndices
Type: System.Int32[]

[in] Array of first indices identifying which project each file belongs to. For more information, see IVsTrackProjectDocumentsEvents2.

rgpszMkDocuments
Type: System.String[]

[in] Array of paths for the files that were processed. This is the same size as cFiles.

rgFlags
Type: Microsoft.VisualStudio.Shell.Interop.VSADDFILEFLAGS[]

[in] Array of flags. For a list of rgFlags values, see VSADDFILEFLAGS.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From IVsTrackProjectDocumentsEvents2.idl

HRESULT IVsTrackProjectDocumentsEvents2::OnAfterAddFilesEx(
   [in] int cProjects,
   [in] int cFiles,
   [in, size_is(cProjects)] IVsProject *rgpProjects[],
   [in, size_is(cProjects)] const int rgFirstIndices[],
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],
   [in, size_is(cFiles)] const VSADDFILEFLAGS rgFlags[]
);
Return to top
Show: