Compartir a través de


IVsTrackProjectDocuments2.OnAfterAddFiles(IVsProject, Int32, String[]) Method

Definition

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

public:
 int OnAfterAddFiles(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cFiles, cli::array <System::String ^> ^ rgpszMkDocuments);
public:
 int OnAfterAddFiles(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cFiles, Platform::Array <Platform::String ^> ^ rgpszMkDocuments);
int OnAfterAddFiles(Microsoft::VisualStudio::Shell::Interop::IVsProject const & pProject, int cFiles, std::Array <std::wstring const &> const & rgpszMkDocuments);
public int OnAfterAddFiles (Microsoft.VisualStudio.Shell.Interop.IVsProject pProject, int cFiles, string[] rgpszMkDocuments);
abstract member OnAfterAddFiles : Microsoft.VisualStudio.Shell.Interop.IVsProject * int * string[] -> int
Public Function OnAfterAddFiles (pProject As IVsProject, cFiles As Integer, rgpszMkDocuments As String()) As Integer

Parameters

pProject
IVsProject

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

cFiles
Int32

[in] Number of files that were added.

rgpszMkDocuments
String[]

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

Returns

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

Remarks

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.

Applies to