DisplayInformation.CreateForWindowId(WindowId) 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.
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.