-api-id | -api-type |
---|---|
T:Windows.ApplicationModel.DataTransfer.DataRequest |
winrt class |
Lets your app supply the content the user wants to share or specify a message, if an error occurs.
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.
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]