Delen via


WiFiAdapter.AvailableNetworksChanged Event

Definition

Note

Some information relates to pre-released product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Important

This API will be affected by upcoming changes to operating system behavior, planned for fall 2024. For more info, see Changes to API behavior for Wi-Fi access and location.

Event raised when a scan completes on this Wi-Fi adapter. This event cannot be raised from a background task.

// Register
event_token AvailableNetworksChanged(TypedEventHandler<WiFiAdapter, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
WiFiAdapter::AvailableNetworksChanged_revoker AvailableNetworksChanged(auto_revoke_t, TypedEventHandler<WiFiAdapter, IInspectable const&> const& handler) const;
public event TypedEventHandler<WiFiAdapter,object> AvailableNetworksChanged;
function onAvailableNetworksChanged(eventArgs) { /* Your code */ }
wiFiAdapter.addEventListener("availablenetworkschanged", onAvailableNetworksChanged);
wiFiAdapter.removeEventListener("availablenetworkschanged", onAvailableNetworksChanged);
- or -
wiFiAdapter.onavailablenetworkschanged = onAvailableNetworksChanged;
Public Custom Event AvailableNetworksChanged As TypedEventHandler(Of WiFiAdapter, Object) 

Event Type

Applies to