다음을 통해 공유


IVsSolutionEvents3.OnQueryUnloadProject Method

Queries listening clients as to whether the project can be unloaded.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

‘선언
Function OnQueryUnloadProject ( _
    pRealHierarchy As IVsHierarchy, _
    <OutAttribute> ByRef pfCancel As Integer _
) As Integer
‘사용 방법
Dim instance As IVsSolutionEvents3
Dim pRealHierarchy As IVsHierarchy
Dim pfCancel As Integer
Dim returnValue As Integer

returnValue = instance.OnQueryUnloadProject(pRealHierarchy, _
    pfCancel)
int OnQueryUnloadProject(
    IVsHierarchy pRealHierarchy,
    out int pfCancel
)
int OnQueryUnloadProject(
    [InAttribute] IVsHierarchy^ pRealHierarchy, 
    [InAttribute] [OutAttribute] int% pfCancel
)
abstract OnQueryUnloadProject : 
        pRealHierarchy:IVsHierarchy * 
        pfCancel:int byref -> int 
function OnQueryUnloadProject(
    pRealHierarchy : IVsHierarchy, 
    pfCancel : int
) : int

Parameters

  • pfCancel
    Type: System.Int32%
    [out] true if the client vetoed unloading the project. false if the client approved unloading the project.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsSolutionEvents2.OnQueryUnloadProject(IVsHierarchy, Int32%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents3::OnQueryUnloadProject(
   [in] IVsHierarchy *pRealHierarchy,
   [in,out] BOOL *pfCancel
);

.NET Framework Security

See Also

Reference

IVsSolutionEvents3 Interface

IVsSolutionEvents3 Members

Microsoft.VisualStudio.Shell.Interop Namespace