Compartir a través de


IVsSolutionEvents4.OnQueryChangeProjectParent Method

Queries listening clients as to whether a parent project has changed.

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

Syntax

'Declaration
Function OnQueryChangeProjectParent ( _
    pHierarchy As IVsHierarchy, _
    pNewParentHier As IVsHierarchy, _
    <OutAttribute> ByRef pfCancel As Integer _
) As Integer
int OnQueryChangeProjectParent(
    IVsHierarchy pHierarchy,
    IVsHierarchy pNewParentHier,
    out int pfCancel
)
int OnQueryChangeProjectParent(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [InAttribute] IVsHierarchy^ pNewParentHier, 
    [InAttribute] [OutAttribute] int% pfCancel
)
abstract OnQueryChangeProjectParent : 
        pHierarchy:IVsHierarchy * 
        pNewParentHier:IVsHierarchy * 
        pfCancel:int byref -> int
function OnQueryChangeProjectParent(
    pHierarchy : IVsHierarchy, 
    pNewParentHier : IVsHierarchy, 
    pfCancel : int
) : int

Parameters

  • pfCancel
    Type: Int32%

    [in, out] true if the client vetoed the closing of the project. false if the client approved the closing of the project.

Return Value

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

.NET Framework Security

See Also

Reference

IVsSolutionEvents4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace