共用方式為


IVsPackageDynamicToolOwnerEx Interface

Enables dynamic control of Tool Window visibility. Extends, but does not inherit from, IVsPackageDynamicToolOwner. This interface can control how many instances are shown.

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

Syntax

'宣告
<GuidAttribute("91C30F81-E72A-4997-9B07-A0AECB8C9169")> _
<InterfaceTypeAttribute()> _
Public Interface IVsPackageDynamicToolOwnerEx
'用途
Dim instance As IVsPackageDynamicToolOwnerEx
[GuidAttribute("91C30F81-E72A-4997-9B07-A0AECB8C9169")]
[InterfaceTypeAttribute()]
public interface IVsPackageDynamicToolOwnerEx
[GuidAttribute(L"91C30F81-E72A-4997-9B07-A0AECB8C9169")]
[InterfaceTypeAttribute()]
public interface class IVsPackageDynamicToolOwnerEx
[<GuidAttribute("91C30F81-E72A-4997-9B07-A0AECB8C9169")>]
[<InterfaceTypeAttribute()>]
type IVsPackageDynamicToolOwnerEx =  interface end
public interface IVsPackageDynamicToolOwnerEx

Remarks

The environment calls the interface's single method when the user switches active window mode such as debugging or design.

To use this interface, a package must register with a SupportsDynamicToolOwner key.

You can use this interface to have a package hide windows persisted as visible. If the registration key SupportsDynamicToolOwner exists on a tool's package, the environment loads the package before displaying the tool so that the package can control visibility.

See Also

Reference

IVsPackageDynamicToolOwnerEx Members

Microsoft.VisualStudio.Shell.Interop Namespace