nerdexam
Microsoft

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.

Program the User Interaction

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)
  • A
    19% (8)
  • B
    7% (3)
  • C
    5% (2)
  • D
    70% (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

#Share charm#DataRequest#FailWithDisplayText#content sharing

Community Discussion

No community discussion yet for this question.

Full 70-484 Practice