Contains classes that are used to exchange data between a source app and a target app. These classes are used in share and clipboard operations.
Members
The Windows.ApplicationModel.DataTransfer namespace has these types of members:
Classes
The Windows.ApplicationModel.DataTransfer namespace has these classes.
| Class | Description |
|---|---|
| Clipboard | Gets and sets information from the clipboard object. |
| DataPackage | Contains the data that a user wants to exchange with another app. |
| DataPackagePropertySet | Defines a set of properties to use with a DataPackage object. |
| DataPackagePropertySetView | Gets the set of properties of a DataPackageView object. |
| DataPackageView | A read-only version of a DataPackage. Apps that receive shared content get this object when acquiring content. |
| DataProviderDeferral | Used by a source app's deferral delegate to notify a DataPackage object that the source app will produce data from another asynchronous function. |
| DataProviderRequest | An object of this type is passed to the DataProviderHandler delegate. |
| DataRequest | Lets your app supply the content the user wants to share or specify a message, if an error occurs. |
| DataRequestDeferral | Enables you to exchange content with a target app asynchronously. |
| DataRequestedEventArgs | Contains information about the DataRequested event. The system fires this event when the user invokes the Share UI. |
| DataTransferManager | Programmatically initiates an exchange of content with other apps. |
| HtmlFormatHelper | Responsible for formatting HTML content that you want to share or add to the Clipboard. Also allows you to get HTML fragments from the content. |
| OperationCompletedEventArgs | Contains info about the action that a target app completed during a paste operation. |
| StandardDataFormats | Contains static properties that return string values. Each string corresponds to a known format ID. Use this class to avoid errors in using string constants to specify data formats. |
| TargetApplicationChosenEventArgs | Contains information about the target app the user chose to share content with. To get this object, you must handle the TargetApplicationChosen event. |
Delegates
The Windows.ApplicationModel.DataTransfer namespace has these delegates.
| Delegate | Description |
|---|---|
| DataProviderHandler | Provides data when the target app requests it, instead of including the data in the DataPackage ahead of time. DataProviderHandler is used when the source app wants to avoid unnecessary work that is resource intensive, such as performing format conversions. |
Enumerations
The Windows.ApplicationModel.DataTransfer namespace has these enumerations.
| Enumeration | Description |
|---|---|
| DataPackageOperation | Specifies the operation the DataPackage stored in the Clipboard supports. |
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also
- Windows.ApplicationModel.DataTransfer.ShareTarget
- Quickstart: Sharing content (Windows Store apps using C# and XAML)
- Quickstart: Sharing content (Windows Store apps using JavaScript and HTML)
- Sharing content target app sample
Build date: 2/25/2013