DataPackageOperation DataPackageOperation DataPackageOperation DataPackageOperation Enum

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

Syntax

Declaration

public enum DataPackageOperationpublic enum DataPackageOperationPublic Enum DataPackageOperationpublic enum DataPackageOperation

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.

Fields

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

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

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

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

System.FlagsAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.ApplicationModel.DataTransfer.dll