FlavoredProject.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
'宣言
Protected Overridable Sub Close
'使用
Me.Close()
protected virtual void Close()
protected:
virtual void Close()
abstract Close : unit -> unit
override Close : unit -> unit
protected function Close()
Remarks
This method calls the [T:Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.Close()] method on the inner project. This 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.