Export (0) Print
Expand All

IVsTrackProjectDocuments2.OnAfterAddFiles Method

This method is called by a project after files have been added to the project.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int OnAfterAddFiles (
	[InAttribute] IVsProject pProject,
	[InAttribute] int cFiles,
	[InAttribute] string[] rgpszMkDocuments
)
int OnAfterAddFiles (
	/** @attribute InAttribute() */ IVsProject pProject, 
	/** @attribute InAttribute() */ int cFiles, 
	/** @attribute InAttribute() */ String[] rgpszMkDocuments
)
function OnAfterAddFiles (
	pProject : IVsProject, 
	cFiles : int, 
	rgpszMkDocuments : String[]
) : int

Parameters

pProject

[in] Project to which the files have been added.

cFiles

[in] Number of files that were added.

rgpszMkDocuments

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

Return Value

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

COM Signature

From IVsTrackProjectDocuments2.idl

HRESULT IVsTrackProjectDocuments2::OnAfterAddFiles(
   [in] IVsProject *pProject,
   [in] int cFiles,
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[]
);

The project must call this method after it has added files to notify the environment that the files have been added.

Community Additions

ADD
Show:
© 2014 Microsoft