TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs Class

Definition

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

public : sealed class TargetApplicationChosenEventArgs : ITargetApplicationChosenEventArgspublic sealed class TargetApplicationChosenEventArgs : ITargetApplicationChosenEventArgsPublic NotInheritable Class TargetApplicationChosenEventArgs Implements ITargetApplicationChosenEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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");
}

Properties

ApplicationName ApplicationName ApplicationName ApplicationName

Contains the name of the app that the user chose to share content with.

public : PlatForm::String ApplicationName { get; }public string ApplicationName { get; }Public ReadOnly Property ApplicationName As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The name of the app.