Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IVsToolboxActiveUserHook.InterceptDataObject Method

This method is called by the Toolbox whenever one of its data objects participates in a drag-and-drop operation.

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

int InterceptDataObject(
	IDataObject pIn,
	out IDataObject ppOut
)

Parameters

pIn
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
[in] An IDataObject containing the object being dropped on the Toolbox user.
ppOut
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
[out] An IDataObject containing a modified object which will be handled by the Toolbox user.

Return Value

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

COM Signature

From vsshell80.idl:

HRESULT IVsToolboxActiveUserHook::InterceptDataObject(
   [in] IDataObject *pIn,
   [out] IDataObject **ppOut
);

IVsToolboxActiveUserHook is used by an application that needs to intercept and modify certain Toolbox data objects when they are copied or dragged.

It should only be called by the Toolbox itself, as only the active Toolbox user can receive IVsToolboxActiveUserHook notifications.

Community Additions

ADD
Show:
© 2015 Microsoft