Correct Answer:
Explanation/Reference:
Note:
The DataTransferManager object is the main starting point for any share operation. You’ll add a datarequested event handler on the DataTransferManager object in the activated event handler of your app. The datarequested event occurs when the will.
When adatarequestedevent occurs, your app receives aDataRequestobject. This object contains aDataPackagethat you can use to provide the content that the user wants to share.
Example code (for step 3):
// This app is newly launched; register it as a share source.
var dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.getForCurrentView();
Reference:
How to share files (HTML) (Windows)