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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。