ActionableSolutionListener.OnQueryUnloadProject Method
Called to query clients whether the project may be unloaded.
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 OnQueryUnloadProject ( _
realHierarchy As IVsHierarchy, _
ByRef cancel As Integer _
) As Integer
'Usage
Dim instance As ActionableSolutionListener
Dim realHierarchy As IVsHierarchy
Dim cancel As Integer
Dim returnValue As Integer
returnValue = instance.OnQueryUnloadProject(realHierarchy, _
cancel)
public override int OnQueryUnloadProject(
IVsHierarchy realHierarchy,
ref int cancel
)
public:
virtual int OnQueryUnloadProject(
IVsHierarchy^ realHierarchy,
int% cancel
) override
public override function OnQueryUnloadProject(
realHierarchy : IVsHierarchy,
cancel : int
) : int
abstract OnQueryUnloadProject :
realHierarchy:IVsHierarchy *
cancel:int -> int
override OnQueryUnloadProject :
realHierarchy:IVsHierarchy *
cancel:int -> int
Parameters
- realHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The hierarchy of the project to unload
- cancel
Type: System.Int32%
Specifies whether the client vetoed unloading the project
Return Value
Type: System.Int32
Implements
IVsSolutionEvents3.OnQueryUnloadProject(IVsHierarchy, Int32%)
IVsSolutionEvents2.OnQueryUnloadProject(IVsHierarchy, Int32%)
IVsSolutionEvents.OnQueryUnloadProject(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