Freigeben über


KeyEventHandler Delegat

Definition

Stellt die Methode dar, die die Ereignisse KeyUp und KeyDown behandelt.

public delegate void KeyEventHandler(Platform::Object ^ sender, KeyRoutedEventArgs ^ e);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2086916837, 31246, 19986, 185, 106, 119, 21, 170, 111, 241, 200)]
class KeyEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2086916837, 31246, 19986, 185, 106, 119, 21, 170, 111, 241, 200)]
public delegate void KeyEventHandler(object sender, KeyRoutedEventArgs e);
Public Delegate Sub KeyEventHandler(sender As Object, e As KeyRoutedEventArgs)

Parameter

sender
Object

Platform::Object

IInspectable

Das Objekt, an das der Ereignishandler angefügt ist.

e
KeyRoutedEventArgs

Die Ereignisdaten.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Gilt für: