ActionableSolutionListener.OnQueryChangeProjectParent Method
Called to query clients whether a parent project has changed.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Overrides Function OnQueryChangeProjectParent ( _
hierarchy As IVsHierarchy, _
newParentHierarchy As IVsHierarchy, _
ByRef cancel As Integer _
) As Integer
'Usage
Dim instance As ActionableSolutionListener
Dim hierarchy As IVsHierarchy
Dim newParentHierarchy As IVsHierarchy
Dim cancel As Integer
Dim returnValue As Integer
returnValue = instance.OnQueryChangeProjectParent(hierarchy, _
newParentHierarchy, cancel)
public override int OnQueryChangeProjectParent(
IVsHierarchy hierarchy,
IVsHierarchy newParentHierarchy,
ref int cancel
)
public:
virtual int OnQueryChangeProjectParent(
IVsHierarchy^ hierarchy,
IVsHierarchy^ newParentHierarchy,
int% cancel
) override
public override function OnQueryChangeProjectParent(
hierarchy : IVsHierarchy,
newParentHierarchy : IVsHierarchy,
cancel : int
) : int
abstract OnQueryChangeProjectParent :
hierarchy:IVsHierarchy *
newParentHierarchy:IVsHierarchy *
cancel:int -> int
override OnQueryChangeProjectParent :
hierarchy:IVsHierarchy *
newParentHierarchy:IVsHierarchy *
cancel:int -> int
Parameters
- hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The hierarchy of the project parent
- newParentHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The hierarchy of the changed project parent
- cancel
Type: System.Int32%
Specifies whether client vetoed project closing
Return Value
Type: System.Int32
Implements
IVsSolutionEvents4.OnQueryChangeProjectParent(IVsHierarchy, IVsHierarchy, Int32%)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ActionableSolutionListener Class
ActionableSolutionListener Members
Microsoft.VisualStudio.Data.Schema.Project.Project.Utilities Namespace