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.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
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
)
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
pProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsProjectThe IVsProject affected.
cFiles
Type: Int32The number of files affected.
rgpszMkDocuments
Type: array<String[]An array of paths of the files.
rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILEFLAGS[]An array of VSQUERYADDFILEFLAGS.
pSummaryResult
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILERESULTS[]An array of summary VSQUERYADDFILERESULTS objects, which represent a summary of the yes/no values returned.
rgResults
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYADDFILERESULTS[]An array of VSQUERYADDFILERESULTS.
Return Value
Type: Int32
S_OK.
Implements
Remarks
This event is not used.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.