Windows.ApplicationModel.DataTransfer.DataRequest

November 12, 2020 ยท View on GitHub

-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