DragEventArgs.AllowedOperations Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that specifies which operations (none, move, copy, and/or link) are allowed by the source of the drag event.
public:
property DataPackageOperation AllowedOperations { DataPackageOperation get(); };
DataPackageOperation AllowedOperations();
public DataPackageOperation AllowedOperations { get; }
var dataPackageOperation = dragEventArgs.allowedOperations;
Public ReadOnly Property AllowedOperations As DataPackageOperation
A value or bitwise combination of values that specifies which operations are allowed by the source of the drag event.
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
This value is set in the UIElement.DragStarting event handler via the DragStartingEventArgs.AllowedOperations property. It can then be read from this property in the DragEnter and DragOver events of the UIElement
that is a potential drop target of the drag and drop operation. It notifies the target which data package operations (none, move, copy, and/or link) are allowed by the source.
For more info about the allowed data operations, see the DataPackageOperation enumeration.
Product | Versions |
---|---|
WinRT | Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |