次の方法で共有


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories Method

Raised to determine whether directories 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

'宣言
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
'使用
Dim instance As FlavoredProject
Dim pProject As IVsProject
Dim cDirs As Integer
Dim rgszMkOldNames As String()
Dim rgszMkNewNames As String()
Dim rgFlags As VSQUERYRENAMEDIRECTORYFLAGS()
Dim pSummaryResult As VSQUERYRENAMEDIRECTORYRESULTS()
Dim rgResults As VSQUERYRENAMEDIRECTORYRESULTS()
Dim returnValue As Integer

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

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

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace