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)
Syntax
'Declaration
Function OnAfterAddFilesEx ( _
    pProject As IVsProject, _
    cFiles As Integer, _
    rgpszMkDocuments As String(), _
    rgFlags As VSADDFILEFLAGS() _
) As Integer
int OnAfterAddFilesEx(
    IVsProject pProject,
    int cFiles,
    string[] rgpszMkDocuments,
    VSADDFILEFLAGS[] rgFlags
)
int OnAfterAddFilesEx(
    [InAttribute] IVsProject^ pProject, 
    [InAttribute] int cFiles, 
    [InAttribute] array<String^>^ rgpszMkDocuments, 
    [InAttribute] array<VSADDFILEFLAGS>^ rgFlags
)
abstract OnAfterAddFilesEx : 
        pProject:IVsProject * 
        cFiles:int * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSADDFILEFLAGS[] -> int
function OnAfterAddFilesEx(
    pProject : IVsProject, 
    cFiles : int, 
    rgpszMkDocuments : String[], 
    rgFlags : VSADDFILEFLAGS[]
) : int
Parameters
- pProject 
 Type: Microsoft.VisualStudio.Shell.Interop.IVsProject- [in] Project to which the files have been added. 
- cFiles 
 Type: Int32- [in] Number of files that were added. 
- rgpszMkDocuments 
 Type: array<String[]- [in] Array of paths for the files that were processed. This is the same size as cFiles. 
- rgFlags 
 Type: array<Microsoft.VisualStudio.Shell.Interop.VSADDFILEFLAGS[]- [in] Array of flags. For a list of rgFlags values, see VSADDFILEFLAGS. 
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From IVsTrackProjectDocuments2.idl
HRESULT IVsTrackProjectDocuments2::OnAfterAddFilesEx(
   [in] IVsProject *pProject,
   [in] int cFiles,
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],
   [in, size_is(cFiles)] const VSADDFILEFLAGS rgFlags[]
);
The project must call this method after it has added files to notify the environment that the files have been added. Unlike OnAfterAddFiles, this method allows you to specify a unique flag for each file.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.