ModelingEditorFactory.OnQueryUnloadProject Method
Queries listening clients as to whether the project can be unloaded.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
声明
Public Function OnQueryUnloadProject ( _
pRealHierarchy As IVsHierarchy, _
ByRef pfCancel As Integer _
) As Integer
public int OnQueryUnloadProject(
IVsHierarchy pRealHierarchy,
ref int pfCancel
)
public:
virtual int OnQueryUnloadProject(
IVsHierarchy^ pRealHierarchy,
int% pfCancel
) sealed
abstract OnQueryUnloadProject :
pRealHierarchy:IVsHierarchy *
pfCancel:int byref -> int
override OnQueryUnloadProject :
pRealHierarchy:IVsHierarchy *
pfCancel:int byref -> int
public final function OnQueryUnloadProject(
pRealHierarchy : IVsHierarchy,
pfCancel : int
) : int
Parameters
- pRealHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The IVsHierarchy interface of the project that was loaded.
- pfCancel
Type: System.Int32%
true to query clients if the client did not approve the unloading of the project; otherwise, false.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
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.