DataPackageOperation enumeration

DataPackageOperation enumeration

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

Syntax


public enum DataPackageOperation

Members

The DataPackageOperation enumeration has these members.

MemberValueDescription
None | none0

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

Copy | copy1

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

Move | move2

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

Link | link4

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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.winmd

Attributes

[Flags()]
[Version(0x06020000)]

See also

DataPackage.RequestedOperation

 

 

Show:
© 2016 Microsoft