Partilhar via


IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink) Método

Definição

Registra a interface IKeyboardInputSink de um componente independente.

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

Parâmetros

sink
IKeyboardInputSink

O coletor IKeyboardInputSink do componente independente.

Retornos

IKeyboardInputSite

O site IKeyboardInputSite do componente independente.

Atributos

Comentários

Os componentes com componentes filho devem manter coleções internas de sites e usar esse método para adicionar um novo coletor e retornar o novo site. Você só precisa manter o conjunto de sites, pois o coletor pode ser obtido do site.

Aplica-se a