FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
引发以确定是否可以在项目中重命名目录。 未使用。
virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cDirs, cli::array <System::String ^> ^ rgszMkOldNames, cli::array <System::String ^> ^ rgszMkNewNames, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYFLAGS> ^ rgFlags, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYRESULTS> ^ pSummaryResult, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYRESULTS> ^ rgResults) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnQueryRenameDirectories;
virtual int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories(Microsoft::VisualStudio::Shell::Interop::IVsProject ^ pProject, int cDirs, Platform::Array <Platform::String ^> ^ rgszMkOldNames, Platform::Array <Platform::String ^> ^ rgszMkNewNames, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYFLAGS> ^ rgFlags, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYRESULTS> ^ pSummaryResult, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYRESULTS> ^ rgResults) = Microsoft::VisualStudio::Shell::Interop::IVsTrackProjectDocumentsEvents2::OnQueryRenameDirectories;
int Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories(Microsoft::VisualStudio::Shell::Interop::IVsProject const & pProject, int cDirs, std::Array <std::wstring const &> const & rgszMkOldNames, std::Array <std::wstring const &> const & rgszMkNewNames, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYFLAGS> const & rgFlags, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYRESULTS> const & pSummaryResult, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYRENAMEDIRECTORYRESULTS> const & rgResults);
int IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories (Microsoft.VisualStudio.Shell.Interop.IVsProject pProject, int cDirs, string[] rgszMkOldNames, string[] rgszMkNewNames, Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYFLAGS[] rgFlags, Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYRESULTS[] pSummaryResult, Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYRESULTS[] rgResults);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories : Microsoft.VisualStudio.Shell.Interop.IVsProject * int * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYFLAGS[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYRESULTS[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYRESULTS[] -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories : Microsoft.VisualStudio.Shell.Interop.IVsProject * int * string[] * string[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYFLAGS[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYRESULTS[] * Microsoft.VisualStudio.Shell.Interop.VSQUERYRENAMEDIRECTORYRESULTS[] -> int
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
参数
- pProject
- IVsProject
IVsProject受影响的。
- cDirs
- Int32
受影响的目录数。
- rgszMkOldNames
- String[]
文件的旧路径的数组。
- rgszMkNewNames
- String[]
文件的新路径的数组。
- rgFlags
- VSQUERYRENAMEDIRECTORYFLAGS[]
一个 VSQUERYRENAMEDIRECTORYFLAGS 数组。
- pSummaryResult
- VSQUERYRENAMEDIRECTORYRESULTS[]
Summary 对象的数组 VSQUERYRENAMEDIRECTORYRESULTS ,这些对象表示返回的 "是/否" 值的摘要。
- rgResults
- VSQUERYRENAMEDIRECTORYRESULTS[]
一个 VSQUERYRENAMEFILERESULTS 数组。
返回
Microsoft.VisualStudio.NativeMethods.S_OK.
实现
注解
不使用此事件。