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

参数

返回值

类型:System.Windows.Forms.DragDropEffects
包含允许的拖放效果,例如的 DragDropEffects 对象该数据是否复制,移动或链接。

.NET Framework 安全性

请参见

参考

IVsDataViewDragSourceProvider 接口

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