Export (0) Print
Expand All

IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx Method

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 (
	[InAttribute] int cProjects,
	[InAttribute] int cFiles,
	[InAttribute] IVsProject[] rgpProjects,
	[InAttribute] int[] rgFirstIndices,
	[InAttribute] string[] rgpszMkDocuments,
	[InAttribute] VSADDFILEFLAGS[] rgFlags
)
int OnAfterAddFilesEx (
	/** @attribute InAttribute() */ int cProjects, 
	/** @attribute InAttribute() */ int cFiles, 
	/** @attribute InAttribute() */ IVsProject[] rgpProjects, 
	/** @attribute InAttribute() */ int[] rgFirstIndices, 
	/** @attribute InAttribute() */ String[] rgpszMkDocuments, 
	/** @attribute InAttribute() */ VSADDFILEFLAGS[] rgFlags
)
function OnAfterAddFilesEx (
	cProjects : int, 
	cFiles : int, 
	rgpProjects : IVsProject[], 
	rgFirstIndices : int[], 
	rgpszMkDocuments : String[], 
	rgFlags : VSADDFILEFLAGS[]
) : int

Parameters

cProjects

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

cFiles

[in] Number of files that were added.

rgpProjects

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

rgFirstIndices

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

rgpszMkDocuments

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

rgFlags

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

Return Value

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

COM Signature

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[]
);

Community Additions

ADD
Show:
© 2014 Microsoft