共用方式為


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories Method

Raised to determine whether directories can be renamed in the project. Not used.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Private Function OnQueryRenameDirectories ( _
    pProject As IVsProject, _
    cDirs As Integer, _
    rgszMkOldNames As String(), _
    rgszMkNewNames As String(), _
    rgFlags As VSQUERYRENAMEDIRECTORYFLAGS(), _
    pSummaryResult As VSQUERYRENAMEDIRECTORYRESULTS(), _
    rgResults As VSQUERYRENAMEDIRECTORYRESULTS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories
int IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories(
    IVsProject pProject,
    int cDirs,
    string[] rgszMkOldNames,
    string[] rgszMkNewNames,
    VSQUERYRENAMEDIRECTORYFLAGS[] rgFlags,
    VSQUERYRENAMEDIRECTORYRESULTS[] pSummaryResult,
    VSQUERYRENAMEDIRECTORYRESULTS[] rgResults
)

Parameters

  • cDirs
    Type: System.Int32
    The number of directories affected. 
  • 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.OnQueryRenameDirectories(IVsProject, Int32, array<String[], array<String[], array<VSQUERYRENAMEDIRECTORYFLAGS[], array<VSQUERYRENAMEDIRECTORYRESULTS[], array<VSQUERYRENAMEDIRECTORYRESULTS[])

Remarks

This event is not used.

.NET Framework Security

See Also

Reference

FlavoredProject Class

Microsoft.VisualStudio.Shell.Flavor Namespace