70-484 · Question #61
You are developing an app that will be used to purchase and share music. Users will be allowed to share only content that they have purchased. You need to display a message within the Share charm when
The correct answer is D. Use the FailWithDisplayText() method of the DataRequest object.. Use the FailWithDisplayText method when your app is unable to supply a DataPackage to a This method cancels the share operation and supplies a text message to the target app. The target app can then display this text to the user to explain why the share operation failed.
Question
You are developing an app that will be used to purchase and share music. Users will be allowed to share only content that they have purchased. You need to display a message within the Share charm when users attempt to share content that they have not purchased. What should you do?
Options
- AUse a toast notification.
- BUse the SetText() method of the DataPackage object.
- CSet the LegalInformation property of the DataPackage object.
- DUse the FailWithDisplayText() method of the DataRequest object.
How the community answered
(43 responses)- A19% (8)
- B7% (3)
- C5% (2)
- D70% (30)
Explanation
Use the FailWithDisplayText method when your app is unable to supply a DataPackage to a This method cancels the share operation and supplies a text message to the target app. The target app can then display this text to the user to explain why the share operation failed.
Topics
Community Discussion
No community discussion yet for this question.