HwndSource.IKeyboardInputSink.RegisterKeyboardInputSink 方法

定义

有关此成员的说明,请参见 RegisterKeyboardInputSink(IKeyboardInputSink)

 virtual System::Windows::Interop::IKeyboardInputSite ^ System.Windows.Interop.IKeyboardInputSink.RegisterKeyboardInputSink(System::Windows::Interop::IKeyboardInputSink ^ sink) = System::Windows::Interop::IKeyboardInputSink::RegisterKeyboardInputSink;
[System.Security.SecurityCritical]
System.Windows.Interop.IKeyboardInputSite IKeyboardInputSink.RegisterKeyboardInputSink (System.Windows.Interop.IKeyboardInputSink sink);
System.Windows.Interop.IKeyboardInputSite IKeyboardInputSink.RegisterKeyboardInputSink (System.Windows.Interop.IKeyboardInputSink sink);
[<System.Security.SecurityCritical>]
abstract member System.Windows.Interop.IKeyboardInputSink.RegisterKeyboardInputSink : System.Windows.Interop.IKeyboardInputSink -> System.Windows.Interop.IKeyboardInputSite
override this.System.Windows.Interop.IKeyboardInputSink.RegisterKeyboardInputSink : System.Windows.Interop.IKeyboardInputSink -> System.Windows.Interop.IKeyboardInputSite
abstract member System.Windows.Interop.IKeyboardInputSink.RegisterKeyboardInputSink : System.Windows.Interop.IKeyboardInputSink -> System.Windows.Interop.IKeyboardInputSite
override this.System.Windows.Interop.IKeyboardInputSink.RegisterKeyboardInputSink : System.Windows.Interop.IKeyboardInputSink -> System.Windows.Interop.IKeyboardInputSite
Function RegisterKeyboardInputSink (sink As IKeyboardInputSink) As IKeyboardInputSite Implements IKeyboardInputSink.RegisterKeyboardInputSink

参数

sink
IKeyboardInputSink

所包含组件的 IKeyboardInputSink 接收器。

返回

IKeyboardInputSite

所包含组件的 IKeyboardInputSite 站点。

实现

属性

注解

此成员是显式接口成员的实现。 它只能在 HwndSource 实例被强制转换为 IKeyboardInputSink 接口时使用。

适用于