ModelingDocView.InterceptDataObject 方法

当输入数据对象将要进入拖放操作时,由工具箱调用。 方法允许返回数据对象替换输入数据对象,而这会进入拖放操作。 基实现返回 null,这意味着输入数据对象无替换。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
Protected Overridable Function InterceptDataObject ( _
    input As IDataObject _
) As IDataObject
protected virtual IDataObject InterceptDataObject(
    IDataObject input
)

参数

返回值

类型:Microsoft.VisualStudio.OLE.Interop.IDataObject
替代输入数据对象的数据对象。如果为 null,则意味着无替换。

.NET Framework 安全性

请参阅

参考

ModelingDocView 类

Microsoft.VisualStudio.Modeling.Shell 命名空间