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

Definición

Registra la interfaz IKeyboardInputSink de un componente contenido.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

Parámetros

sink
IKeyboardInputSink IKeyboardInputSink IKeyboardInputSink IKeyboardInputSink

Receptor IKeyboardInputSink del componente contenido.The IKeyboardInputSink sink of the contained component.

Devoluciones

Sitio IKeyboardInputSite del componente contenido.The IKeyboardInputSite site of the contained component.

Comentarios

Los componentes con componentes secundarios deben mantener colecciones internas de sitios y usar este método para agregar un nuevo receptor y devolver el nuevo sitio.Components with child components should maintain internal collections of sites and use this method to add a new sink and return the new site. Solo tiene que mantener la colección de sitios, ya que el receptor puede obtenerse del sitio.You only need to maintain the site collection, because the sink can be obtained from the site.

Se aplica a