Condividi tramite


FlavoredProject.IVsHierarchy.Close Method

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

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 Close As Integer Implements IVsHierarchy.Close
'Utilizzo
Dim instance As FlavoredProject
Dim returnValue As Integer

returnValue = CType(instance, IVsHierarchy).Close()
int IVsHierarchy.Close()
private:
virtual int Close() sealed = IVsHierarchy::Close
private abstract Close : unit -> int 
private override Close : unit -> int 
JScript does not support explicit interface implementations.

Return Value

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

Implements

IVsHierarchy.Close()

Remarks

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

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

.NET Framework Security

See Also

Reference

FlavoredProject Class

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace