共用方式為


DisplayInformation.CreateForWindowId(WindowId) 方法

定義

為指定的WindowId建立新的DisplayInformation物件。

注意

您必須從已執行 Microsoft.UI.Dispatching.DispatcherQueue 的執行緒呼叫這個方法。

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

參數

windowId
WindowId

要為其建立 DisplayInformation的最上層視窗識別碼。

傳回

新的 DisplayInformation 物件。

適用於