Freigeben über


IVsHierarchy.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

'Declaration
Function Close As Integer
int Close()
int Close()
abstract Close : unit -> int
function Close() : int

Return Value

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

Remarks

The IVsHierarchy.Close method is only called automatically 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 (the Site).

.NET Framework Security

See Also

Reference

IVsHierarchy Interface

Microsoft.VisualStudio.Shell.Interop Namespace