Condividi tramite


IVsUIHierarchy.Close Method

Closes and cleans up a hierarchy once the environment determines that it is no longer used.

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

Syntax

'Dichiarazione
Function Close As Integer
'Utilizzo
Dim instance As IVsUIHierarchy
Dim returnValue As Integer

returnValue = instance.Close()
int Close()
int Close()
abstract Close : unit -> int 
function Close() : int

Return Value

Type: System.Int32

Implements

IVsHierarchy.Close()

Remarks

The IVsUIHierarchy.Close method is called automatically only on hierarchies that are part of a solution. For hierarchies outside of solutions, have your package call this method on exit for any hierarchies that the package implements.

This method can only be called by the code owning this instance of the hierarchy

.NET Framework Security

See Also

Reference

IVsUIHierarchy Interface

IVsUIHierarchy Members

Close Overload

Microsoft.VisualStudio.Shell.Interop Namespace