Condividi tramite


FlavoredProject.IVsHierarchy.QueryClose Method

Determines whether the hierarchy can be closed.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Dichiarazione
Private Function QueryClose ( _
    <OutAttribute> ByRef canClose As Integer _
) As Integer Implements IVsHierarchy.QueryClose
'Utilizzo
Dim instance As FlavoredProject
Dim canClose As Integer
Dim returnValue As Integer

returnValue = CType(instance, IVsHierarchy).QueryClose(canClose)
int IVsHierarchy.QueryClose(
    out int canClose
)
private:
virtual int QueryClose(
    [OutAttribute] int% canClose
) sealed = IVsHierarchy::QueryClose
private abstract QueryClose : 
        canClose:int byref -> int 
private override QueryClose : 
        canClose:int byref -> int 
JScript does not support explicit interface implementations.

Parameters

  • canClose
    Type: System.Int32%
    [out] Returns true if the hierarchy can be closed, otherwise false.

Return Value

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

Implements

IVsHierarchy.QueryClose(Int32%)

Remarks

This method calls the QueryClose method, which calls the QueryClose method on the inner project.

.NET Framework Security

See Also

Reference

FlavoredProject Class

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace