Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DisplayInformation.GetForCurrentView Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the DisplayInformation instance associated with the current thread's CoreApplicationView. This DisplayInformation instance is tied to the view and cannot be used from other threads.

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

Returns

A DisplayInformation object that provides display-related information for the current thread's view.

Remarks

This method is static. This method can fail if the current thread is not the UI thread for an application view.

Applies to


Feedback

Was this page helpful?