FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryRemoveFiles Method
Raised to determine whether files can be removed from 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 OnQueryRemoveFiles ( _
pProject As IVsProject, _
cFiles As Integer, _
rgpszMkDocuments As String(), _
rgFlags As VSQUERYREMOVEFILEFLAGS(), _
pSummaryResult As VSQUERYREMOVEFILERESULTS(), _
rgResults As VSQUERYREMOVEFILERESULTS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnQueryRemoveFiles
'Utilizzo
Dim instance As FlavoredProject
Dim pProject As IVsProject
Dim cFiles As Integer
Dim rgpszMkDocuments As String()
Dim rgFlags As VSQUERYREMOVEFILEFLAGS()
Dim pSummaryResult As VSQUERYREMOVEFILERESULTS()
Dim rgResults As VSQUERYREMOVEFILERESULTS()
Dim returnValue As Integer
returnValue = CType(instance, IVsTrackProjectDocumentsEvents2).OnQueryRemoveFiles(pProject, _
cFiles, rgpszMkDocuments, rgFlags, _
pSummaryResult, rgResults)
int IVsTrackProjectDocumentsEvents2.OnQueryRemoveFiles(
IVsProject pProject,
int cFiles,
string[] rgpszMkDocuments,
VSQUERYREMOVEFILEFLAGS[] rgFlags,
VSQUERYREMOVEFILERESULTS[] pSummaryResult,
VSQUERYREMOVEFILERESULTS[] rgResults
)
private:
virtual int OnQueryRemoveFiles(
IVsProject^ pProject,
int cFiles,
array<String^>^ rgpszMkDocuments,
array<VSQUERYREMOVEFILEFLAGS>^ rgFlags,
array<VSQUERYREMOVEFILERESULTS>^ pSummaryResult,
array<VSQUERYREMOVEFILERESULTS>^ rgResults
) sealed = IVsTrackProjectDocumentsEvents2::OnQueryRemoveFiles
private abstract OnQueryRemoveFiles :
pProject:IVsProject *
cFiles:int *
rgpszMkDocuments:string[] *
rgFlags:VSQUERYREMOVEFILEFLAGS[] *
pSummaryResult:VSQUERYREMOVEFILERESULTS[] *
rgResults:VSQUERYREMOVEFILERESULTS[] -> int
private override OnQueryRemoveFiles :
pProject:IVsProject *
cFiles:int *
rgpszMkDocuments:string[] *
rgFlags:VSQUERYREMOVEFILEFLAGS[] *
pSummaryResult:VSQUERYREMOVEFILERESULTS[] *
rgResults:VSQUERYREMOVEFILERESULTS[] -> int
JScript does not support explicit interface implementations.
Parameters
- pProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsProject
The IVsProject affected.
- cFiles
Type: System.Int32
The number of files affected.
- rgpszMkDocuments
Type: array<System.String[]
An array of paths to the files.
- rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILEFLAGS[]
An array of VSQUERYREMOVEFILEFLAGS.
- pSummaryResult
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILERESULTS[]
An array of summary VSQUERYREMOVEFILERESULTS objects, which represent a summary of the yes/no values returned.
- rgResults
Type: array<Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILERESULTS[]
An array of VSQUERYREMOVEFILERESULTS.
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.