DeviceInformationCustomPairing.PairingSetMembersRequested 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當要求配對集的成員 () 時引發。 如需詳細資訊和程式代碼範例,請參閱 將集合與 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 引進)
|