Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1022 Bytes

File metadata and controls

25 lines (16 loc) · 1022 Bytes
-api-id -api-type
T:Windows.ApplicationModel.DataTransfer.DataRequest
winrt class

Windows.ApplicationModel.DataTransfer.DataRequest

-description

Lets your app supply the content the user wants to share or specify a message, if an error occurs.

-remarks

Your app receives a DataRequest object when a datarequested event occurs. With this object, your app can supply data to a target app by using a DataPackage object, use a deferral object to call a function, or inform the target app that an error occurred.

-examples

The following code shows how to use the DataRequest object as part of setting the data on a DataPackage to share with another app.

[!code-csharpHowToShareTextBasic]

-see-also