NetworkInformation.NetworkStatusChanged NetworkInformation.NetworkStatusChanged NetworkInformation.NetworkStatusChanged NetworkInformation.NetworkStatusChanged NetworkInformation.NetworkStatusChanged Event

Definition

Occurs when the network status changes for a connection.

public : event NetworkStatusChangedEventHandler NetworkStatusChanged
// Register
event_token NetworkStatusChanged(NetworkStatusChangedEventHandler const& handler) const;

// Revoke with event_token
void NetworkStatusChanged(event_token const& cookie) const;

// Revoke with event_revoker
NetworkStatusChanged_revoker NetworkStatusChanged(auto_revoke_t, NetworkStatusChangedEventHandler const& handler) const;
public event NetworkStatusChangedEventHandler NetworkStatusChanged
Public Event NetworkStatusChanged As NetworkStatusChangedEventHandler
function onNetworkStatusChanged(eventArgs){/* Your code */}


networkInformation.addEventListener("networkstatuschanged", onNetworkStatusChanged);
networkInformation.removeEventListener("networkstatuschanged", onNetworkStatusChanged);