DeviceInformationCustomPairing.PairingSetMembersRequested 事件

定义

请求配对集的成员 () 时引发。 有关详细信息和代码示例,请参阅 将集与 DeviceInformationPairing.Custom 属性配对

// Register
event_token PairingSetMembersRequested(TypedEventHandler<DeviceInformationCustomPairing, DevicePairingSetMembersRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void PairingSetMembersRequested(event_token const* cookie) const;

// Revoke with event_revoker
DeviceInformationCustomPairing::PairingSetMembersRequested_revoker PairingSetMembersRequested(auto_revoke_t, TypedEventHandler<DeviceInformationCustomPairing, DevicePairingSetMembersRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<DeviceInformationCustomPairing,DevicePairingSetMembersRequestedEventArgs> PairingSetMembersRequested;
function onPairingSetMembersRequested(eventArgs) { /* Your code */ }
deviceInformationCustomPairing.addEventListener("pairingsetmembersrequested", onPairingSetMembersRequested);
deviceInformationCustomPairing.removeEventListener("pairingsetmembersrequested", onPairingSetMembersRequested);
- or -
deviceInformationCustomPairing.onpairingsetmembersrequested = onPairingSetMembersRequested;
Public Custom Event PairingSetMembersRequested As TypedEventHandler(Of DeviceInformationCustomPairing, DevicePairingSetMembersRequestedEventArgs) 

事件类型

Windows 要求

设备系列
Windows 11, version 24H2 (在 10.0.26100.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v19.0 中引入)

适用于

另请参阅