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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'宣告
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
- input
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
Input data object to be intercepted.
Return Value
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
Data object to substitute the input one. If null, it means no substitution.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.