SolutionEvents.IVsSolutionEvents4.OnQueryChangeProjectParent(IVsHierarchy, IVsHierarchy, Int32) Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Происходит при запросе изменения родителя проекта.
virtual int Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents4.OnQueryChangeProjectParent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pNewParentHier, int % pfCancel) = Microsoft::VisualStudio::Shell::Interop::IVsSolutionEvents4::OnQueryChangeProjectParent;
int IVsSolutionEvents4.OnQueryChangeProjectParent (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pNewParentHier, ref int pfCancel);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents4.OnQueryChangeProjectParent : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsSolutionEvents4.OnQueryChangeProjectParent : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
Function OnQueryChangeProjectParent (pHierarchy As IVsHierarchy, pNewParentHier As IVsHierarchy, ByRef pfCancel As Integer) As Integer Implements IVsSolutionEvents4.OnQueryChangeProjectParent
Параметры
- pHierarchy
- IVsHierarchy
Иерархия.
- pNewParentHier
- IVsHierarchy
Новая родительская иерархия.
- pfCancel
- Int32
true значение, если операция отменена.
Возвращаемое значение
HRESULT.