共用方式為


InputKeyboardSource.GetForIsland(ContentIsland) 方法

定義

InputKeyboardSource 取指定 ContentIsland的物件。

public:
 static InputKeyboardSource ^ GetForIsland(ContentIsland ^ island);
 static InputKeyboardSource GetForIsland(ContentIsland const& island);
public static InputKeyboardSource GetForIsland(ContentIsland island);
function getForIsland(island)
Public Shared Function GetForIsland (island As ContentIsland) As InputKeyboardSource

參數

island
ContentIsland

正在處理輸入的 ContentIsland

傳回

如果 InputKeyboardSource 指定的 ContentIsland 物件不存在,則為新的 InputKeyboardSource。

如果 island 無效,或是由呼叫執行緒不同的執行緒所擁有,GetForIsland 會傳回 null。

備註

GetForIsland 僅支援與呼叫端相同的執行緒上的內容島。

每次呼叫 GetForIsland 時都會傳回相同的物件。

在所有情況下,只能有一個與特定內容島相關聯的單 InputKeyboardSource 一。

適用於