DataPackageOperation Enum

Definition

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

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

public enum class DataPackageOperation
enum DataPackageOperation
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum DataPackageOperation
var value = Windows.ApplicationModel.DataTransfer.DataPackageOperation.none
Public Enum DataPackageOperation
Inheritance
DataPackageOperation
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Copy 1

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

4

Creates a link for the data.

Move 2

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

None 0

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

Remarks

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.

Applies to

See also