Partager via


ModelingDocView.InterceptDataObject Method

Called by toolbox when the input data object is about to go into a drag-drop operation. This method allows the input data object to be substituted by the returned data object, which will go into the drag-drop operation instead. The base implementation returns null, which means no substitution of the input data object.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected Overridable Function InterceptDataObject ( _
    input As IDataObject _
) As IDataObject
protected virtual IDataObject InterceptDataObject(
    IDataObject input
)
protected:
virtual IDataObject^ InterceptDataObject(
    IDataObject^ input
)
abstract InterceptDataObject : 
        input:IDataObject -> IDataObject  
override InterceptDataObject : 
        input:IDataObject -> IDataObject
protected function InterceptDataObject(
    input : IDataObject
) : IDataObject

Parameters

Return Value

Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
Data object to substitute the input one. If null, it means no substitution.

.NET Framework Security

See Also

Reference

ModelingDocView Class

Microsoft.VisualStudio.Modeling.Shell Namespace