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
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 OnQueryAddDirectories ( _
pProject As IVsProject, _
cDirectories As Integer, _
rgpszMkDocuments As String(), _
rgFlags As VSQUERYADDDIRECTORYFLAGS(), _
pSummaryResult As VSQUERYADDDIRECTORYRESULTS(), _
rgResults As VSQUERYADDDIRECTORYRESULTS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnQueryAddDirectories
'Utilizzo
Dim instance As FlavoredProject
Dim pProject As IVsProject
Dim cDirectories As Integer
Dim rgpszMkDocuments As String()
Dim rgFlags As VSQUERYADDDIRECTORYFLAGS()
Dim pSummaryResult As VSQUERYADDDIRECTORYRESULTS()
Dim rgResults As VSQUERYADDDIRECTORYRESULTS()
Dim returnValue As Integer
returnValue = CType(instance, IVsTrackProjectDocumentsEvents2).OnQueryAddDirectories(pProject, _
cDirectories, rgpszMkDocuments, _
rgFlags, pSummaryResult, rgResults)
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
- pProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsProject
The IVsProject affected.
- cDirectories
Type: System.Int32
The number of directories affected.
- rgpszMkDocuments
Type: array<System.String[]
An array of paths to the directories.
- rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYADDDIRECTORYFLAGS[]
An array of VSQUERYADDDIRECTORYFLAGS.
- pSummaryResult
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYADDDIRECTORYRESULTS[]
An array of summary VSQUERYADDDIRECTORYRESULTS objects, which represent a summary of the yes/no values returned.
- rgResults
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYADDDIRECTORYRESULTS[]
An array of VSQUERYADDDIRECTORYRESULTS.
Return Value
Type: System.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.