Condividi tramite


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

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

Return Value

Type: System.Int32
S_OK().

Implements

IVsTrackProjectDocumentsEvents2.OnQueryRemoveFiles(IVsProject, Int32, array<String[], array<VSQUERYREMOVEFILEFLAGS[], array<VSQUERYREMOVEFILERESULTS[], array<VSQUERYREMOVEFILERESULTS[])

Remarks

This event is not used.

.NET Framework Security

See Also

Reference

FlavoredProject Class

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace