次の方法で共有


WiFiDirectServiceAdvertiser.AdvertisementStatusChanged イベント

定義

AdvertisementStatus プロパティの値が変更されたときに発生するイベント。

// 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) 

イベントの種類

適用対象