共用方式為


IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink) 方法

定義

註冊所包含之元件的 IKeyboardInputSink 介面。

public:
 System::Windows::Interop::IKeyboardInputSite ^ RegisterKeyboardInputSink(System::Windows::Interop::IKeyboardInputSink ^ sink);
[System.Security.SecurityCritical]
public System.Windows.Interop.IKeyboardInputSite RegisterKeyboardInputSink (System.Windows.Interop.IKeyboardInputSink sink);
public System.Windows.Interop.IKeyboardInputSite RegisterKeyboardInputSink (System.Windows.Interop.IKeyboardInputSink sink);
[<System.Security.SecurityCritical>]
abstract member RegisterKeyboardInputSink : System.Windows.Interop.IKeyboardInputSink -> System.Windows.Interop.IKeyboardInputSite
abstract member RegisterKeyboardInputSink : System.Windows.Interop.IKeyboardInputSink -> System.Windows.Interop.IKeyboardInputSite
Public Function RegisterKeyboardInputSink (sink As IKeyboardInputSink) As IKeyboardInputSite

參數

sink
IKeyboardInputSink

所包含之元件的 IKeyboardInputSink 接收。

傳回

IKeyboardInputSite

所包含之元件的 IKeyboardInputSite 站台。

屬性

備註

具有子元件的元件應該維護月臺的內部集合,並使用這個方法來新增接收,並傳回新的月臺。 您只需要維護網站集合,因為可以從網站取得接收。

適用於