Partager via


ProjectionManager.StartProjectingAsync Méthode

Définition

Surcharges

StartProjectingAsync(Int32, Int32)

Envoie de façon asynchrone une fenêtre (vue d’application) au projecteur ou à un autre écran secondaire.

StartProjectingAsync(Int32, Int32, DeviceInformation)

Envoie de façon asynchrone une fenêtre (vue d’application) au projecteur ou à un autre affichage secondaire et fournit des informations sur l’affichage.

StartProjectingAsync(Int32, Int32)

Envoie de façon asynchrone une fenêtre (vue d’application) au projecteur ou à un autre écran secondaire.

public:
 static IAsyncAction ^ StartProjectingAsync(int projectionViewId, int anchorViewId);
/// [Windows.Foundation.Metadata.Overload("StartProjectingAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction StartProjectingAsync(int const& projectionViewId, int const& anchorViewId);
[Windows.Foundation.Metadata.Overload("StartProjectingAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction StartProjectingAsync(int projectionViewId, int anchorViewId);
function startProjectingAsync(projectionViewId, anchorViewId)
Public Shared Function StartProjectingAsync (projectionViewId As Integer, anchorViewId As Integer) As IAsyncAction

Paramètres

projectionViewId
Int32

int

Nouvel ID de la fenêtre à afficher par le projecteur ou tout autre écran secondaire.

anchorViewId
Int32

int

ID de la fenêtre d’origine avant la projection.

Retours

Résultats asynchrones de l’opération. Utilisez cette option pour déterminer quand l’appel asynchrone est terminé.

Attributs

Remarques

Si cette méthode réussit, une fenêtre existante (vue d’application) est placée sur un affichage secondaire, le cas échéant. Sinon, la fenêtre est placée sur l’affichage principal. Cette fenêtre est accessible uniquement à partir d’un thread d’interface utilisateur ASTA.

La fenêtre déplacée a son propre thread d’interface utilisateur ASTA et coreWindow associé. Utilisez toujours des méthodes thread-safe, telles que window.postMessage pour les applications JavaScript ou l’API de messagerie d’événements CoreDispatcher pour les applications C# et C++, lors de la communication entre les fenêtres.

La fenêtre d’affichage d’application actuelle ou la fenêtre d’affichage de projection doit être active pour que cet appel réussisse. L’ID de vue peut être obtenu pour la vue d’application actuelle avec ApplicationView.Id. Pour une vue d’application spécifique gérée par l’application, appelez ApplicationView.GetApplicationViewIdForWindow avec coreWindow pour la vue d’application.

Voir aussi

S’applique à

StartProjectingAsync(Int32, Int32, DeviceInformation)

Envoie de façon asynchrone une fenêtre (vue d’application) au projecteur ou à un autre affichage secondaire et fournit des informations sur l’affichage.

public:
 static IAsyncAction ^ StartProjectingAsync(int projectionViewId, int anchorViewId, DeviceInformation ^ displayDeviceInfo);
/// [Windows.Foundation.Metadata.Overload("StartProjectingWithDeviceInfoAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction StartProjectingAsync(int const& projectionViewId, int const& anchorViewId, DeviceInformation const& displayDeviceInfo);
[Windows.Foundation.Metadata.Overload("StartProjectingWithDeviceInfoAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction StartProjectingAsync(int projectionViewId, int anchorViewId, DeviceInformation displayDeviceInfo);
function startProjectingAsync(projectionViewId, anchorViewId, displayDeviceInfo)
Public Shared Function StartProjectingAsync (projectionViewId As Integer, anchorViewId As Integer, displayDeviceInfo As DeviceInformation) As IAsyncAction

Paramètres

projectionViewId
Int32

int

Nouvel ID de la fenêtre à afficher par le projecteur ou tout autre écran secondaire.

anchorViewId
Int32

int

ID de la fenêtre d’origine avant la projection.

displayDeviceInfo
DeviceInformation

Informations sur le périphérique d’affichage.

Retours

Résultats asynchrones de l’opération. Utilisez cette option pour déterminer quand l’appel asynchrone est terminé.

Attributs

Remarques

Si cette méthode réussit, une fenêtre existante (vue d’application) est placée sur un affichage secondaire, le cas échéant. Sinon, la fenêtre est placée sur l’affichage principal. Cette fenêtre est accessible uniquement à partir d’un thread d’interface utilisateur ASTA.

La fenêtre déplacée a son propre thread d’interface utilisateur ASTA et coreWindow associé. Utilisez toujours des méthodes thread-safe, telles que window.postMessage pour les applications JavaScript ou l’API de messagerie d’événements CoreDispatcher pour les applications C# et C++, lors de la communication entre les fenêtres.

La fenêtre d’affichage d’application actuelle ou la fenêtre d’affichage de projection doit être active pour que cet appel réussisse. L’ID de vue peut être obtenu pour la vue d’application actuelle avec ApplicationView.Id. Pour une vue d’application spécifique gérée par l’application, appelez ApplicationView.GetApplicationViewIdForWindow avec coreWindow pour la vue d’application.

Voir aussi

S’applique à