FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx Method
Raised after files have been added to a project.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaração
Private Function OnAfterAddFilesEx ( _
cProjects As Integer, _
cFiles As Integer, _
rgpProjects As IVsProject(), _
rgFirstIndices As Integer(), _
rgpszMkDocuments As String(), _
rgFlags As VSADDFILEFLAGS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx
int IVsTrackProjectDocumentsEvents2.OnAfterAddFilesEx(
int cProjects,
int cFiles,
IVsProject[] rgpProjects,
int[] rgFirstIndices,
string[] rgpszMkDocuments,
VSADDFILEFLAGS[] rgFlags
)
Parameters
- cProjects
Type: System.Int32
The number of projects in the rgpProjects array.
- cFiles
Type: System.Int32
The number of files to be added.
- rgpProjects
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsProject[]
An array of IVsProject objects.
- rgFirstIndices
Type: array<System.Int32[]
An array of indices of the files that were affected.
- rgpszMkDocuments
Type: array<System.String[]
An array of paths of the files that were affected.
- rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSADDFILEFLAGS[]
An array of VSADDFILEFLAGS. May be nulla null reference (Nothing in Visual Basic).
Return Value
Type: System.Int32
S_OK .
Implements
Remarks
Events are filtered so that they report only those related to this project. This is not required for flavoring, but it simplifies the work the derived classes have to do when subscribing to these events.
.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.