共用方式為


IVsDataViewDragSourceProvider.GetAllowedEffects 方法

當由類別實作時,擷取允許的拖放效果,當節點資料檢視中拖曳,例如複製、移動,或連接時。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function GetAllowedEffects ( _
    dataObject As IDataObject _
) As DragDropEffects
DragDropEffects GetAllowedEffects(
    IDataObject dataObject
)
DragDropEffects GetAllowedEffects(
    IDataObject^ dataObject
)
abstract GetAllowedEffects : 
        dataObject:IDataObject -> DragDropEffects
function GetAllowedEffects(
    dataObject : IDataObject
) : DragDropEffects

參數

  • dataObject
    類型:IDataObject

    包含資訊的複本的 IDataObject 物件要傳送。

傳回值

類型:DragDropEffects
包含允許的拖放效果,例如 DragDropEffects 物件的資料是否複製、移動,或連接。

.NET Framework 安全性

請參閱

參考

IVsDataViewDragSourceProvider 介面

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間