DisplayInformation.CreateForDisplayId(DisplayId) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為指定的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 物件。