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
'宣言
Function GetAllowedEffects ( _
dataObject As IDataObject _
) As DragDropEffects
'使用
Dim instance As IVsDataViewDragSourceProvider
Dim dataObject As IDataObject
Dim returnValue As DragDropEffects
returnValue = instance.GetAllowedEffects(dataObject)
DragDropEffects GetAllowedEffects(
IDataObject dataObject
)
DragDropEffects GetAllowedEffects(
IDataObject^ dataObject
)
function GetAllowedEffects(
dataObject : IDataObject
) : DragDropEffects
Parameters
dataObject
Type: System.Windows.Forms.IDataObjectAn IDataObject object containing a copy of the information to be transferred.
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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataViewDragSourceProvider Interface
IVsDataViewDragSourceProvider Members
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace