共用方式為


IVsToolboxActiveUserHook Interface

Provides support for intercepting and modifying Toolbox interactions, including drag and drop.

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

Syntax

'宣告
<GuidAttribute("A00C298A-6520-4822-ABD8-C5CD03846599")> _
<InterfaceTypeAttribute()> _
Public Interface IVsToolboxActiveUserHook
'用途
Dim instance As IVsToolboxActiveUserHook
[GuidAttribute("A00C298A-6520-4822-ABD8-C5CD03846599")]
[InterfaceTypeAttribute()]
public interface IVsToolboxActiveUserHook
[GuidAttribute(L"A00C298A-6520-4822-ABD8-C5CD03846599")]
[InterfaceTypeAttribute()]
public interface class IVsToolboxActiveUserHook
[<GuidAttribute("A00C298A-6520-4822-ABD8-C5CD03846599")>]
[<InterfaceTypeAttribute()>]
type IVsToolboxActiveUserHook =  interface end
public interface IVsToolboxActiveUserHook

Remarks

IVsToolboxActiveUserHook is used by an application that requires notification of changes to a Toolbox selection and or needs to intercept and modify a data object when it is copied or dragged.

The interface's methods are called by the Toolbox itself, as only the active Toolbox user can receive IVsToolboxActiveUserHook notifications. It should not be called directly by a VSPackage.

Notes to Implementers

Toolbox users that need to intercept and modify Toolbox interactions, before they are completed including drag and drop, should implement the IVsToolboxActiveUserHook interface.

See Also

Reference

IVsToolboxActiveUserHook Members

Microsoft.VisualStudio.Shell.Interop Namespace