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 : ITargetApplicationChosenEventArgs
public sealed class TargetApplicationChosenEventArgs : ITargetApplicationChosenEventArgs
Public NotInheritable Class TargetApplicationChosenEventArgs Implements ITargetApplicationChosenEventArgs
// This class does not provide a public constructor.
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
var string = targetApplicationChosenEventArgs.applicationName;
Value
Platform::String string string string

The name of the app.