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