FlavoredProject.IVsTrackProjectDocumentsEvents2.OnAfterRemoveFiles Method
Raised after files have been removed from the project.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Dichiarazione
Private Function OnAfterRemoveFiles ( _
cProjects As Integer, _
cFiles As Integer, _
rgpProjects As IVsProject(), _
rgFirstIndices As Integer(), _
rgpszMkDocuments As String(), _
rgFlags As VSREMOVEFILEFLAGS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnAfterRemoveFiles
'Utilizzo
Dim instance As FlavoredProject
Dim cProjects As Integer
Dim cFiles As Integer
Dim rgpProjects As IVsProject()
Dim rgFirstIndices As Integer()
Dim rgpszMkDocuments As String()
Dim rgFlags As VSREMOVEFILEFLAGS()
Dim returnValue As Integer
returnValue = CType(instance, IVsTrackProjectDocumentsEvents2).OnAfterRemoveFiles(cProjects, _
cFiles, rgpProjects, rgFirstIndices, _
rgpszMkDocuments, rgFlags)
int IVsTrackProjectDocumentsEvents2.OnAfterRemoveFiles(
int cProjects,
int cFiles,
IVsProject[] rgpProjects,
int[] rgFirstIndices,
string[] rgpszMkDocuments,
VSREMOVEFILEFLAGS[] rgFlags
)
private:
virtual int OnAfterRemoveFiles(
int cProjects,
int cFiles,
array<IVsProject^>^ rgpProjects,
array<int>^ rgFirstIndices,
array<String^>^ rgpszMkDocuments,
array<VSREMOVEFILEFLAGS>^ rgFlags
) sealed = IVsTrackProjectDocumentsEvents2::OnAfterRemoveFiles
private abstract OnAfterRemoveFiles :
cProjects:int *
cFiles:int *
rgpProjects:IVsProject[] *
rgFirstIndices:int[] *
rgpszMkDocuments:string[] *
rgFlags:VSREMOVEFILEFLAGS[] -> int
private override OnAfterRemoveFiles :
cProjects:int *
cFiles:int *
rgpProjects:IVsProject[] *
rgFirstIndices:int[] *
rgpszMkDocuments:string[] *
rgFlags:VSREMOVEFILEFLAGS[] -> int
JScript does not support explicit interface implementations.
Parameters
- cProjects
Type: System.Int32
The number of projects in the rgpProjects array.
- cFiles
Type: System.Int32
The number of files that were affected.
- rgpProjects
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsProject[]
An array of IVsProject objects, corresponding to the projects in the solution.
- 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.VSREMOVEFILEFLAGS[]
An array of VSREMOVEFILEFLAGS. 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.