共用方式為


ModelingDocView.InterceptDataObject 方法

工具箱即將進入拖放作業的輸入的資料物件時呼叫。 這個方法可讓您輸入的資料物件傳回的資料物件,就會進入拖放操作而是可取代。 基底實作會傳回 null,也就沒有替代的輸入的資料物件。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.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 命名空間