CoreDragInfo.AllowedOperations CoreDragInfo.AllowedOperations CoreDragInfo.AllowedOperations CoreDragInfo.AllowedOperations Property

Definition

Gets the allowed DataPackageOperations (none, move, copy, and/or link) for the drag and drop operation.

public : DataPackageOperation AllowedOperations { get; }
DataPackageOperation AllowedOperations();
public DataPackageOperation AllowedOperations { get; }
Public ReadOnly Property AllowedOperations As DataPackageOperation

Property Value

The allowed operations.

Additional features and requirements

Device family
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Remarks

This property specifies the complete set of operations the source app wishes to allow in drag and drop scenarios. There can be zero or more flags. To get the requested default operation, use the DataPackage.RequestedOperation property.

Users can override this choices by using SHIFT and CTRL keys. In this case, inspect the key state to determine the operation the user selected.