Share via


DisplayInformation.GetForCurrentView Méthode

Définition

Obtient la instance DisplayInformation associée au CoreApplicationView du thread actuel. Cette instance DisplayInformation est liée à la vue et ne peut pas être utilisée à partir d’autres threads.

public:
 static DisplayInformation ^ GetForCurrentView();
 static DisplayInformation GetForCurrentView();
public static DisplayInformation GetForCurrentView();
function getForCurrentView()
Public Shared Function GetForCurrentView () As DisplayInformation

Retours

Objet DisplayInformation qui fournit des informations relatives à l’affichage pour la vue du thread actuel.

Remarques

Cette méthode est statique. Cette méthode peut échouer si le thread actuel n’est pas le thread d’interface utilisateur d’une vue d’application.

S’applique à