Condividi tramite


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryAddFiles Method

Raised to determine whether files can be added to the project. Not used.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Dichiarazione
Private Function OnQueryAddFiles ( _
    pProject As IVsProject, _
    cFiles As Integer, _
    rgpszMkDocuments As String(), _
    rgFlags As VSQUERYADDFILEFLAGS(), _
    pSummaryResult As VSQUERYADDFILERESULTS(), _
    rgResults As VSQUERYADDFILERESULTS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnQueryAddFiles
'Utilizzo
Dim instance As FlavoredProject
Dim pProject As IVsProject
Dim cFiles As Integer
Dim rgpszMkDocuments As String()
Dim rgFlags As VSQUERYADDFILEFLAGS()
Dim pSummaryResult As VSQUERYADDFILERESULTS()
Dim rgResults As VSQUERYADDFILERESULTS()
Dim returnValue As Integer

returnValue = CType(instance, IVsTrackProjectDocumentsEvents2).OnQueryAddFiles(pProject, _
    cFiles, rgpszMkDocuments, rgFlags, _
    pSummaryResult, rgResults)
int IVsTrackProjectDocumentsEvents2.OnQueryAddFiles(
    IVsProject pProject,
    int cFiles,
    string[] rgpszMkDocuments,
    VSQUERYADDFILEFLAGS[] rgFlags,
    VSQUERYADDFILERESULTS[] pSummaryResult,
    VSQUERYADDFILERESULTS[] rgResults
)
private:
virtual int OnQueryAddFiles(
    IVsProject^ pProject, 
    int cFiles, 
    array<String^>^ rgpszMkDocuments, 
    array<VSQUERYADDFILEFLAGS>^ rgFlags, 
    array<VSQUERYADDFILERESULTS>^ pSummaryResult, 
    array<VSQUERYADDFILERESULTS>^ rgResults
) sealed = IVsTrackProjectDocumentsEvents2::OnQueryAddFiles
private abstract OnQueryAddFiles : 
        pProject:IVsProject * 
        cFiles:int * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSQUERYADDFILEFLAGS[] * 
        pSummaryResult:VSQUERYADDFILERESULTS[] * 
        rgResults:VSQUERYADDFILERESULTS[] -> int 
private override OnQueryAddFiles : 
        pProject:IVsProject * 
        cFiles:int * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSQUERYADDFILEFLAGS[] * 
        pSummaryResult:VSQUERYADDFILERESULTS[] * 
        rgResults:VSQUERYADDFILERESULTS[] -> int 
JScript does not support explicit interface implementations.

Parameters

  • rgpszMkDocuments
    Type: array<System.String[]
    An array of paths of the files.

Return Value

Type: System.Int32
S_OK().

Implements

IVsTrackProjectDocumentsEvents2.OnQueryAddFiles(IVsProject, Int32, array<String[], array<VSQUERYADDFILEFLAGS[], array<VSQUERYADDFILERESULTS[], array<VSQUERYADDFILERESULTS[])

Remarks

This event is not used.

.NET Framework Security

See Also

Reference

FlavoredProject Class

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace