Partager via


IVsTrackProjectDocuments4.OnQueryRemoveDirectoriesEx Method

Called by a project to determine whether directories can be removed from the project.

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

Syntax

'Declaration
Function OnQueryRemoveDirectoriesEx ( _
    pProject As IVsProject, _
    cDirectories As Integer, _
    rgpszMkDocuments As String(), _
    rgFlags As UInteger(), _
    <OutAttribute> pSummaryResult As VSQUERYREMOVEDIRECTORYRESULTS(), _
    <OutAttribute> rgResults As VSQUERYREMOVEDIRECTORYRESULTS() _
) As Integer
int OnQueryRemoveDirectoriesEx(
    IVsProject pProject,
    int cDirectories,
    string[] rgpszMkDocuments,
    uint[] rgFlags,
    VSQUERYREMOVEDIRECTORYRESULTS[] pSummaryResult,
    VSQUERYREMOVEDIRECTORYRESULTS[] rgResults
)
int OnQueryRemoveDirectoriesEx(
    [InAttribute] IVsProject^ pProject, 
    [InAttribute] int cDirectories, 
    [InAttribute] array<String^>^ rgpszMkDocuments, 
    [InAttribute] array<unsigned int>^ rgFlags, 
    [OutAttribute] array<VSQUERYREMOVEDIRECTORYRESULTS>^ pSummaryResult, 
    [OutAttribute] array<VSQUERYREMOVEDIRECTORYRESULTS>^ rgResults
)
abstract OnQueryRemoveDirectoriesEx : 
        pProject:IVsProject * 
        cDirectories:int * 
        rgpszMkDocuments:string[] * 
        rgFlags:uint32[] * 
        pSummaryResult:VSQUERYREMOVEDIRECTORYRESULTS[] byref * 
        rgResults:VSQUERYREMOVEDIRECTORYRESULTS[] byref -> int
function OnQueryRemoveDirectoriesEx(
    pProject : IVsProject, 
    cDirectories : int, 
    rgpszMkDocuments : String[], 
    rgFlags : uint[], 
    pSummaryResult : VSQUERYREMOVEDIRECTORYRESULTS[], 
    rgResults : VSQUERYREMOVEDIRECTORYRESULTS[]
) : int

Parameters

  • cDirectories
    Type: Int32

    [in] Number of directories to remove.

  • rgpszMkDocuments
    Type: array<String[]

    [in, size_is(cDirectories)] Array of paths for the directories to remove.

  • rgFlags
    Type: array<UInt32[]

    [in, size_is(cDirectories)] Array of directory removal flags. For a list of rgFlags values, see __VSQUERYREMOVEDIRECTORYFLAGS2.

Return Value

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

.NET Framework Security

See Also

Reference

IVsTrackProjectDocuments4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace