IVsTrackProjectDocumentsEvents2.OnAfterRemoveFiles Method

This method notifies the client after files are removed from the project.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

声明
Function OnAfterRemoveFiles ( _
    cProjects As Integer, _
    cFiles As Integer, _
    rgpProjects As IVsProject(), _
    rgFirstIndices As Integer(), _
    rgpszMkDocuments As String(), _
    rgFlags As VSREMOVEFILEFLAGS() _
) As Integer
用法
Dim instance As IVsTrackProjectDocumentsEvents2
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 = instance.OnAfterRemoveFiles(cProjects, _
    cFiles, rgpProjects, rgFirstIndices, _
    rgpszMkDocuments, rgFlags)
int OnAfterRemoveFiles(
    int cProjects,
    int cFiles,
    IVsProject[] rgpProjects,
    int[] rgFirstIndices,
    string[] rgpszMkDocuments,
    VSREMOVEFILEFLAGS[] rgFlags
)
int OnAfterRemoveFiles(
    [InAttribute] int cProjects, 
    [InAttribute] int cFiles, 
    [InAttribute] array<IVsProject^>^ rgpProjects, 
    [InAttribute] array<int>^ rgFirstIndices, 
    [InAttribute] array<String^>^ rgpszMkDocuments, 
    [InAttribute] array<VSREMOVEFILEFLAGS>^ rgFlags
)
abstract OnAfterRemoveFiles : 
        cProjects:int * 
        cFiles:int * 
        rgpProjects:IVsProject[] * 
        rgFirstIndices:int[] * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSREMOVEFILEFLAGS[] -> int 
function OnAfterRemoveFiles(
    cProjects : int, 
    cFiles : int, 
    rgpProjects : IVsProject[], 
    rgFirstIndices : int[], 
    rgpszMkDocuments : String[], 
    rgFlags : VSREMOVEFILEFLAGS[]
) : int

Parameters

  • cProjects
    Type: System.Int32
    [in] Number of projects from which files were removed.
  • rgpszMkDocuments
    Type: array<System.String[]
    [in] Array of paths for the files that were removed.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From IVsTrackProjectDocumentsEvents2.idl

HRESULT IVsTrackProjectDocumentsEvents2::OnAfterRemoveFiles(
   [in] int cProjects,
   [in] int cFiles,
   [in, size_is(cProjects)] IVsProject *rgpProjects[],
   [in, size_is(cProjects)] const int rgFirstIndices[],
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],
   [in, size_is(cFiles)] const VSREMOVEFILEFLAGS rgFlags[]
);

.NET Framework Security

See Also

Reference

IVsTrackProjectDocumentsEvents2 Interface

IVsTrackProjectDocumentsEvents2 Members

Microsoft.VisualStudio.Shell.Interop Namespace