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