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

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


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

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

 

 

Mostrar:
© 2014 Microsoft