共用方式為


InputPointerSource.GetForIsland(ContentIsland) 方法

定義

InputPointerSource 取指定 ContentIsland的物件。

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

參數

island
ContentIsland

正在處理輸入的 ContentIsland

傳回

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

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

備註

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

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

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

適用於