TargetApplicationChosenEventArgs class

Applies to Windows and Windows Phone

Contains information about the target app the user chose to share content with. To get this object, you must handle the TargetApplicationChosen event.

Syntax


Public NotInheritable Class TargetApplicationChosenEventArgs

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The TargetApplicationChosenEventArgs class has these types of members:

Properties

The TargetApplicationChosenEventArgs class has these properties.

PropertyAccess typeDescription

ApplicationName

Read-onlyContains the name of the app that the user chose to share content with.

 

Examples


var dataTransferManager = Windows.ApplicationModel.DataTransfer.getForCurrentView();
dataTransferManager.addEventListener("targetapplicationchosen", onTargetApplicationChosen);

function onTargetApplicationChosen(targetApplicationChosentEvent) {
    var appChosenDiv = document.createElement("div");
    appChosenDiv.innerText = targetApplicationChosenEvent.applicationName;
    document.body.appendChild("appChosenDiv");
}

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft