TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs Class

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

Syntax

Declaration

public sealed class TargetApplicationChosenEventArgspublic sealed class TargetApplicationChosenEventArgsPublic NotInheritable Class TargetApplicationChosenEventArgs

Remarks

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 summary

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

Properties

  • ApplicationName
    ApplicationName
    ApplicationName
    ApplicationName

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

    public string ApplicationName { get; }public string ApplicationName { get; }Public ReadOnly Property ApplicationName As string

    Property Value

    • string
      string
      string
      string

      The name of the app.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.ApplicationModel.DataTransfer.dll