次の方法で共有


InputKeyboardSource.GetForIsland(ContentIsland) メソッド

定義

指定した InputKeyboardSourceContentIsland のオブジェクトを取得します。

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

戻り値

指定した ContentIslandのオブジェクト。存在しない場合はInputKeyboardSource新しい InputKeyboardSource。

island が無効であるか、呼び出し元のスレッドとは異なるスレッドによって所有されている場合、GetForIsland は null を返します。

注釈

GetForIsland では、呼び出し元と同じスレッド上のコンテンツ アイランドのみがサポートされます。

GetForIsland を複数回呼び出すと、毎回同じオブジェクトが返されます。

いずれの場合も、特定のコンテンツ アイランドに関連付けられるのは 1 つだけ InputKeyboardSource です。

適用対象