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 站点。

属性

注解

具有子组件的组件应维护网站的内部集合,并使用此方法添加新接收器并返回新站点。 只需维护网站集,因为可以从网站获取接收器。

适用于