Delen via


CoreDragInfo.AllowedOperations Property

Definition

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

public:
 property DataPackageOperation AllowedOperations { DataPackageOperation get(); };
DataPackageOperation AllowedOperations();
public DataPackageOperation AllowedOperations { get; }
var dataPackageOperation = coreDragInfo.allowedOperations;
Public ReadOnly Property AllowedOperations As DataPackageOperation

Property Value

The allowed operations.

Windows requirements

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

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.

Applies to