共用方式為


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 命名空間