Partager via


WiFiDirectServiceAdvertiser.AdvertisementStatusChanged Événement

Définition

Événement déclenché lorsque la valeur de la propriété AdvertisementStatus change.

// Register
event_token AdvertisementStatusChanged(TypedEventHandler<WiFiDirectServiceAdvertiser, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
WiFiDirectServiceAdvertiser::AdvertisementStatusChanged_revoker AdvertisementStatusChanged(auto_revoke_t, TypedEventHandler<WiFiDirectServiceAdvertiser, IInspectable const&> const& handler) const;
public event TypedEventHandler<WiFiDirectServiceAdvertiser,object> AdvertisementStatusChanged;
function onAdvertisementStatusChanged(eventArgs) { /* Your code */ }
wiFiDirectServiceAdvertiser.addEventListener("advertisementstatuschanged", onAdvertisementStatusChanged);
wiFiDirectServiceAdvertiser.removeEventListener("advertisementstatuschanged", onAdvertisementStatusChanged);
- or -
wiFiDirectServiceAdvertiser.onadvertisementstatuschanged = onAdvertisementStatusChanged;
Public Custom Event AdvertisementStatusChanged As TypedEventHandler(Of WiFiDirectServiceAdvertiser, Object) 

Type d'événement

S’applique à