DisplayInformation.CreateForWindowId(WindowId) Method

Definition

Creates a new DisplayInformation object for the specified WindowId.

Note

You must call this method from a thread that has a Microsoft.UI.Dispatching.DispatcherQueue already running.

public:
 static DisplayInformation ^ CreateForWindowId(WindowId windowId);
 static DisplayInformation CreateForWindowId(WindowId const& windowId);
public static DisplayInformation CreateForWindowId(WindowId windowId);
function createForWindowId(windowId)
Public Shared Function CreateForWindowId (windowId As WindowId) As DisplayInformation

Parameters

windowId
WindowId

The top-level window identifier for which to create a DisplayInformation.

Returns

The new DisplayInformation object.

Applies to