Share via


AppWindow.GetFromWindowId(WindowId) 方法

定義

AppWindow如果有的話,傳回具有指定 WindowId 之 的 。 如果 WindowId 無法比對至有效的視窗,則傳 null 回 。

public:
 static AppWindow ^ GetFromWindowId(WindowId windowId);
 static AppWindow GetFromWindowId(WindowId const& windowId);
public static AppWindow GetFromWindowId(WindowId windowId);
function getFromWindowId(windowId)
Public Shared Function GetFromWindowId (windowId As WindowId) As AppWindow

參數

windowId
WindowId

AppWindow 識別碼。

傳回

AppWindow如果可用,則為具有指定 WindowId 之 的 WindowId ; null 如果 無法比對有效的視窗,則為 。

適用於

另請參閱