WiFiDirectServiceAdvertiser.AdvertisementStatusChanged 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.
Event raised when the AdvertisementStatus property value changes.
// 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)
Event Type
TypedEventHandler<WiFiDirectServiceAdvertiser,IInspectable>