Queries listening clients as to whether the project can be closed.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Public Function OnQueryCloseProject ( _
pHierarchy As IVsHierarchy, _
fRemoving As Integer, _
ByRef pfCancel As Integer _
) As Integer
'Usage
Dim instance As ModelingEditorFactory
Dim pHierarchy As IVsHierarchy
Dim fRemoving As Integer
Dim pfCancel As Integer
Dim returnValue As Integer
returnValue = instance.OnQueryCloseProject(pHierarchy, _
fRemoving, pfCancel)
public int OnQueryCloseProject(
IVsHierarchy pHierarchy,
int fRemoving,
ref int pfCancel
)
public:
virtual int OnQueryCloseProject(
IVsHierarchy^ pHierarchy,
int fRemoving,
int% pfCancel
) sealed
public final function OnQueryCloseProject(
pHierarchy : IVsHierarchy,
fRemoving : int,
pfCancel : int
) : int
Parameters
pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe IVsHierarchy interface of the project that is being loaded.
fRemoving
Type: System.Int32true to query clients if the project is being removed from the modeling editor before the modeling editor is closed; otherwise, false.
pfCancel
Type: System.Int32%true to query clients if a client prevented the project from closing; 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.OnQueryCloseProject(IVsHierarchy, Int32, 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.