DataPackageOperation
DataPackageOperation
DataPackageOperation
DataPackageOperation
Enum
Definition
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 DataPackageOperationpublic enum DataPackageOperationPublic Enum DataPackageOperation// You can use this enum in JavaScript.
- Attributes
-
System.FlagsAttribute ContractVersionAttribute
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| Copy Copy Copy Copy | Copies the content to the target destination. When implementing clipboard functionality, this corresponds to the "Copy" command. |
| Link Link Link Link | 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. |
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.