Aplicativos do Windows
EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

TargetApplicationChosenEventArgs class

[ Updated for UWP apps on Windows 10. For Windows 8.x articles, see the archive ]

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

Syntax


/* For information about creating or accessing this object, see Remarks. */

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 (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

 

 

Mostrar:
© 2016 Microsoft