Condividi tramite


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryRenameFiles Method

Raised to determine whether files can be renamed in 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 OnQueryRenameFiles ( _
    pProject As IVsProject, _
    cFiles As Integer, _
    rgszMkOldNames As String(), _
    rgszMkNewNames As String(), _
    rgFlags As VSQUERYRENAMEFILEFLAGS(), _
    pSummaryResult As VSQUERYRENAMEFILERESULTS(), _
    rgResults As VSQUERYRENAMEFILERESULTS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnQueryRenameFiles
'Utilizzo
Dim instance As FlavoredProject
Dim pProject As IVsProject
Dim cFiles As Integer
Dim rgszMkOldNames As String()
Dim rgszMkNewNames As String()
Dim rgFlags As VSQUERYRENAMEFILEFLAGS()
Dim pSummaryResult As VSQUERYRENAMEFILERESULTS()
Dim rgResults As VSQUERYRENAMEFILERESULTS()
Dim returnValue As Integer

returnValue = CType(instance, IVsTrackProjectDocumentsEvents2).OnQueryRenameFiles(pProject, _
    cFiles, rgszMkOldNames, rgszMkNewNames, _
    rgFlags, pSummaryResult, rgResults)
int IVsTrackProjectDocumentsEvents2.OnQueryRenameFiles(
    IVsProject pProject,
    int cFiles,
    string[] rgszMkOldNames,
    string[] rgszMkNewNames,
    VSQUERYRENAMEFILEFLAGS[] rgFlags,
    VSQUERYRENAMEFILERESULTS[] pSummaryResult,
    VSQUERYRENAMEFILERESULTS[] rgResults
)
private:
virtual int OnQueryRenameFiles(
    IVsProject^ pProject, 
    int cFiles, 
    array<String^>^ rgszMkOldNames, 
    array<String^>^ rgszMkNewNames, 
    array<VSQUERYRENAMEFILEFLAGS>^ rgFlags, 
    array<VSQUERYRENAMEFILERESULTS>^ pSummaryResult, 
    array<VSQUERYRENAMEFILERESULTS>^ rgResults
) sealed = IVsTrackProjectDocumentsEvents2::OnQueryRenameFiles
private abstract OnQueryRenameFiles : 
        pProject:IVsProject * 
        cFiles:int * 
        rgszMkOldNames:string[] * 
        rgszMkNewNames:string[] * 
        rgFlags:VSQUERYRENAMEFILEFLAGS[] * 
        pSummaryResult:VSQUERYRENAMEFILERESULTS[] * 
        rgResults:VSQUERYRENAMEFILERESULTS[] -> int 
private override OnQueryRenameFiles : 
        pProject:IVsProject * 
        cFiles:int * 
        rgszMkOldNames:string[] * 
        rgszMkNewNames:string[] * 
        rgFlags:VSQUERYRENAMEFILEFLAGS[] * 
        pSummaryResult:VSQUERYRENAMEFILERESULTS[] * 
        rgResults:VSQUERYRENAMEFILERESULTS[] -> int 
JScript does not support explicit interface implementations.

Parameters

  • rgszMkOldNames
    Type: array<System.String[]
    An array of the old paths of the files.
  • rgszMkNewNames
    Type: array<System.String[]
    An array of the new paths of the files.

Return Value

Type: System.Int32
S_OK().

Implements

IVsTrackProjectDocumentsEvents2.OnQueryRenameFiles(IVsProject, Int32, array<String[], array<String[], array<VSQUERYRENAMEFILEFLAGS[], array<VSQUERYRENAMEFILERESULTS[], array<VSQUERYRENAMEFILERESULTS[])

Remarks

This event is not used.

.NET Framework Security

See Also

Reference

FlavoredProject Class

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace