DataPackageOperation DataPackageOperation DataPackageOperation DataPackageOperation DataPackageOperation Enum


Specifies the operation to perform on the DataPackage in clipboard and drag and drop scenarios.

This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.

public : enum class DataPackageOperation
enum class winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation : uint32_t
public enum DataPackageOperation
Public Enum DataPackageOperation
var value = Windows.ApplicationModel.DataTransfer.DataPackageOperation.copy;
System.FlagsAttribute ContractVersionAttribute
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Copy Copy Copy Copy Copy

Copies the content to the target destination. When implementing clipboard functionality, this corresponds to the "Copy" command.

Creates a link for the data.

Move Move Move Move Move

Copies the content to the target destination and deletes the original. When implementing clipboard functionality, this corresponds to the "Cut" command.

None None None None None

No action. Typically used when the DataPackage object requires delayed rendering.


If your app supports the exchange of data through clipboard and drag and drop, you need to specify what type operation the user wants. The available operations are none/no action, copy, move, and link.

Many existing controls, such as the text box control, include support for Clipboard actions. Before implementing your own support for these actions, check to see if they are already supported.

See Also