Partager via


IVsDataViewDragSourceProvider.GetAllowedEffects Method

When implemented by a class, retrieves the allowed drag-and-drop effects when a node is dragged in the data view, such as copying, moving, or linking.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: System.Windows.Forms.DragDropEffects
A DragDropEffects object containing the allowed drag-and-drop effects, such as whether the data is copied, moved, or linked.

.NET Framework Security

See Also

Reference

IVsDataViewDragSourceProvider Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace