Compartir a través de


IVsTrackProjectDocuments2.OnAfterRemoveDirectories Method

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

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

Syntax

'Declaración
Function OnAfterRemoveDirectories ( _
    pProject As IVsProject, _
    cDirectories As Integer, _
    rgpszMkDocuments As String(), _
    rgFlags As VSREMOVEDIRECTORYFLAGS() _
) As Integer
'Uso
Dim instance As IVsTrackProjectDocuments2
Dim pProject As IVsProject
Dim cDirectories As Integer
Dim rgpszMkDocuments As String()
Dim rgFlags As VSREMOVEDIRECTORYFLAGS()
Dim returnValue As Integer

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

Parameters

  • cDirectories
    Type: System.Int32

    [in] Number of directories that were removed.

  • rgpszMkDocuments
    Type: array<System.String[]

    [in, size_is(cDirectories)] Array of paths for the directories 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 IVsTrackProjectDocuments2.idl

HRESULT IVsTrackProjectDocuments2::OnAfterRemoveDirectories(
   [in] IVsProject *pProject,
   [in] int cDirectories,
   [in, size_is(cDirectories)] const LPCOLESTR rgpszMkDocuments[],
   [in, size_is(cDirectories)] const VSREMOVEDIRECTORYFLAGS rgFlags[]
);

The project calls this method after it has removed directories to notify the environment that the directories have been removed.

Note

All directory calls are optional. However, if you call one of the OnQuery* directory methods, then you are required to call the corresponding OnAfter* directory method if the OnQuery* call was successful.

Permissions

See Also

Reference

IVsTrackProjectDocuments2 Interface

IVsTrackProjectDocuments2 Members

Microsoft.VisualStudio.Shell.Interop Namespace