次の方法で共有


IVsTrackProjectDocuments2.OnAfterRemoveFiles Method

This method is called by a project after files have been removed from the project.

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

Syntax

'宣言
Function OnAfterRemoveFiles ( _
    pProject As IVsProject, _
    cFiles As Integer, _
    rgpszMkDocuments As String(), _
    rgFlags As VSREMOVEFILEFLAGS() _
) As Integer
'使用
Dim instance As IVsTrackProjectDocuments2
Dim pProject As IVsProject
Dim cFiles As Integer
Dim rgpszMkDocuments As String()
Dim rgFlags As VSREMOVEFILEFLAGS()
Dim returnValue As Integer

returnValue = instance.OnAfterRemoveFiles(pProject, _
    cFiles, rgpszMkDocuments, rgFlags)
int OnAfterRemoveFiles(
    IVsProject pProject,
    int cFiles,
    string[] rgpszMkDocuments,
    VSREMOVEFILEFLAGS[] rgFlags
)
int OnAfterRemoveFiles(
    [InAttribute] IVsProject^ pProject, 
    [InAttribute] int cFiles, 
    [InAttribute] array<String^>^ rgpszMkDocuments, 
    [InAttribute] array<VSREMOVEFILEFLAGS>^ rgFlags
)
function OnAfterRemoveFiles(
    pProject : IVsProject, 
    cFiles : int, 
    rgpszMkDocuments : String[], 
    rgFlags : VSREMOVEFILEFLAGS[]
) : int

Parameters

  • cFiles
    Type: System.Int32

    [in] Number of files that were removed.

  • rgpszMkDocuments
    Type: []

    [in, size_is(cFiles)] Array of paths for the files that were removed.

  • rgFlags
    Type: []

    [in, size_is(cFiles)] Array of flags. For a list of rgFlags values, see VSREMOVEFILEFLAGS.

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 IVsTrackProjectDocuments2.idl

HRESULT IVsTrackProjectDocuments2::OnAfterRemoveFiles(
   [in] IVsProject *pProject,
   [in] int cFiles,
   [in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[],
   [in, size_is(cFiles)] const VSREMOVEFILEFLAGS rgFlags[]
);

The project must call this method after it has removed files to notify the environment that the files have been removed.

Permissions

See Also

Reference

IVsTrackProjectDocuments2 Interface

IVsTrackProjectDocuments2 Members

Microsoft.VisualStudio.Shell.Interop Namespace