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 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Public Function OnQueryUnloadProject ( _
    pRealHierarchy As IVsHierarchy, _
    ByRef pfCancel As Integer _
) As Integer
'Usage
Dim instance As ModelingEditorFactory 
Dim pRealHierarchy As IVsHierarchy 
Dim pfCancel As Integer 
Dim returnValue As Integer 

returnValue = instance.OnQueryUnloadProject(pRealHierarchy, _
    pfCancel)
public int OnQueryUnloadProject(
    IVsHierarchy pRealHierarchy,
    ref int pfCancel
)
public:
virtual int OnQueryUnloadProject(
    IVsHierarchy^ pRealHierarchy, 
    int% pfCancel
) sealed
public final function OnQueryUnloadProject(
    pRealHierarchy : IVsHierarchy, 
    pfCancel : int
) : int

Parameters

  • 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

See Also

Reference

ModelingEditorFactory Class

ModelingEditorFactory Members

Microsoft.VisualStudio.Modeling.Shell Namespace

IVsEditorFactory