共用方式為


RoutedEventHandler 代理人

定義

表示將處理路由事件的方法。

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2824267380, 45238, 19395, 187, 168, 27, 160, 110, 64, 212, 181)]
class RoutedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2824267380, 45238, 19395, 187, 168, 27, 160, 110, 64, 212, 181)]
public delegate void RoutedEventHandler(object sender, RoutedEventArgs e);
Public Delegate Sub RoutedEventHandler(sender As Object, e As RoutedEventArgs)

參數

sender
Object

IInspectable

附加事件處理常式的物件。

e
RoutedEventArgs

事件資料。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

適用於