IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink) IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink) IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink) IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink) Method

定義

註冊所包含之元件的 IKeyboardInputSink 介面。Registers the IKeyboardInputSink interface of a contained component.

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);
abstract member RegisterKeyboardInputSink : System.Windows.Interop.IKeyboardInputSink -> System.Windows.Interop.IKeyboardInputSite
Public Function RegisterKeyboardInputSink (sink As IKeyboardInputSink) As IKeyboardInputSite

參數

sink
IKeyboardInputSink IKeyboardInputSink IKeyboardInputSink IKeyboardInputSink

所包含之元件的 IKeyboardInputSink 接收。The IKeyboardInputSink sink of the contained component.

傳回

所包含之元件的 IKeyboardInputSite 站台。The IKeyboardInputSite site of the contained component.

備註

應該維護站台的內部集合並使用這個方法來加入新的接收並傳回新的站台與子元件的元件。Components with child components should maintain internal collections of sites and use this method to add a new sink and return the new site. 您只需要維護網站集合,因為接收可以從網站取得。You only need to maintain the site collection, because the sink can be obtained from the site.

適用於