共用方式為


DisplayInformation.CreateForDisplayId(DisplayId) 方法

定義

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

注意

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

public:
 static DisplayInformation ^ CreateForDisplayId(DisplayId displayId);
 static DisplayInformation CreateForDisplayId(DisplayId const& displayId);
public static DisplayInformation CreateForDisplayId(DisplayId displayId);
function createForDisplayId(displayId)
Public Shared Function CreateForDisplayId (displayId As DisplayId) As DisplayInformation

參數

displayId
DisplayId

要為其建立 DisplayInformation 的顯示監視器識別碼。

傳回

新的 DisplayInformation 物件。

適用於