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
)
參數
- input
型別:Microsoft.VisualStudio.OLE.Interop.IDataObject
若要攔截的輸入的資料物件。
傳回值
型別:Microsoft.VisualStudio.OLE.Interop.IDataObject
要取代輸入的一個資料物件。如果是 null,則表示沒有替代。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。