Udostępnij za pośrednictwem


DataPackageOperation Enum

Definition

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

This enumeration supports a bitwise combination of its member values.

public enum class DataPackageOperation
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class 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 requirements

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

Fields

Name Value Description
None 0

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

Copy 1

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

Move 2

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

4

Creates a link for the data.

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