DeviceInformationCustomPairing.PairingRequested Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when a pairing action is requested.
// Register
event_token PairingRequested(TypedEventHandler<DeviceInformationCustomPairing, DevicePairingRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void PairingRequested(event_token const* cookie) const;
// Revoke with event_revoker
DeviceInformationCustomPairing::PairingRequested_revoker PairingRequested(auto_revoke_t, TypedEventHandler<DeviceInformationCustomPairing, DevicePairingRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<DeviceInformationCustomPairing,DevicePairingRequestedEventArgs> PairingRequested;
function onPairingRequested(eventArgs) { /* Your code */ }
deviceInformationCustomPairing.addEventListener("pairingrequested", onPairingRequested);
deviceInformationCustomPairing.removeEventListener("pairingrequested", onPairingRequested);
- or -
deviceInformationCustomPairing.onpairingrequested = onPairingRequested;
Public Custom Event PairingRequested As TypedEventHandler(Of DeviceInformationCustomPairing, DevicePairingRequestedEventArgs)