DataPackageOperation enumeration

Applies to Windows and Windows Phone

Specifies the operation the DataPackage stored in the Clipboard supports.

Syntax


var value = Windows.ApplicationModel.DataTransfer.DataPackageOperation.none;

Attributes

[Version(0x06020000)]

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.

Move | move2

Copies the content to the target destination and deletes the original.

Link | link4

Creates a link for the data.

Remarks

If your app supports the exchange of data through the Clipboard, you need to specify what type of clipboard operation the user wants. The available operations are none/no action, copy, move, and link.

To specify an operation, use one of these constants and assign it to the RequestedOperation property of the DataPackage class.

Remember that 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

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

 

 

Show:
© 2014 Microsoft