共用方式為


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryAddFiles Method

Raised to determine whether files 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

'宣告
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
int IVsTrackProjectDocumentsEvents2.OnQueryAddFiles(
    IVsProject pProject,
    int cFiles,
    string[] rgpszMkDocuments,
    VSQUERYADDFILEFLAGS[] rgFlags,
    VSQUERYADDFILERESULTS[] pSummaryResult,
    VSQUERYADDFILERESULTS[] rgResults
)

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

Microsoft.VisualStudio.Shell.Flavor Namespace