共用方式為


FlavoredProject.Close Method

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

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Protected Overridable Sub Close
protected virtual void 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

See Also

Reference

FlavoredProject Class

Microsoft.VisualStudio.Shell.Flavor Namespace