Share via


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryAddDirectories Method

Raised by a project to determine whether directories can be added to the project. Not used.

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

Syntax

'Declaration
Private Function OnQueryAddDirectories ( _
    pProject As IVsProject, _
    cDirectories As Integer, _
    rgpszMkDocuments As String(), _
    rgFlags As VSQUERYADDDIRECTORYFLAGS(), _
    pSummaryResult As VSQUERYADDDIRECTORYRESULTS(), _
    rgResults As VSQUERYADDDIRECTORYRESULTS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnQueryAddDirectories
int IVsTrackProjectDocumentsEvents2.OnQueryAddDirectories(
    IVsProject pProject,
    int cDirectories,
    string[] rgpszMkDocuments,
    VSQUERYADDDIRECTORYFLAGS[] rgFlags,
    VSQUERYADDDIRECTORYRESULTS[] pSummaryResult,
    VSQUERYADDDIRECTORYRESULTS[] rgResults
)
private:
virtual int OnQueryAddDirectories(
    IVsProject^ pProject, 
    int cDirectories, 
    array<String^>^ rgpszMkDocuments, 
    array<VSQUERYADDDIRECTORYFLAGS>^ rgFlags, 
    array<VSQUERYADDDIRECTORYRESULTS>^ pSummaryResult, 
    array<VSQUERYADDDIRECTORYRESULTS>^ rgResults
) sealed = IVsTrackProjectDocumentsEvents2::OnQueryAddDirectories
private abstract OnQueryAddDirectories : 
        pProject:IVsProject * 
        cDirectories:int * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSQUERYADDDIRECTORYFLAGS[] * 
        pSummaryResult:VSQUERYADDDIRECTORYRESULTS[] * 
        rgResults:VSQUERYADDDIRECTORYRESULTS[] -> int  
private override OnQueryAddDirectories : 
        pProject:IVsProject * 
        cDirectories:int * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSQUERYADDDIRECTORYFLAGS[] * 
        pSummaryResult:VSQUERYADDDIRECTORYRESULTS[] * 
        rgResults:VSQUERYADDDIRECTORYRESULTS[] -> int
JScript does not support explicit interface implementations.

Parameters

  • cDirectories
    Type: System.Int32

    The number of directories affected.

  • rgpszMkDocuments
    Type: array<System.String[]

    An array of paths to the directories.

Return Value

Type: System.Int32
S_OK.

Implements

IVsTrackProjectDocumentsEvents2.OnQueryAddDirectories(IVsProject, Int32, array<String[], array<VSQUERYADDDIRECTORYFLAGS[], array<VSQUERYADDDIRECTORYRESULTS[], array<VSQUERYADDDIRECTORYRESULTS[])

Remarks

This event is not used.

.NET Framework Security

See Also

Reference

FlavoredProject Class

Microsoft.VisualStudio.Shell.Flavor Namespace