System.Network.Wireless.connectionChanged Event

Event fired when the network connection changes.

Syntax

retVal = System.Network.Wireless.connectionChanged(
  handler
)

Parameters

  • handler
    The name of the function to call when the event is fired.

Remarks

A network connection change is triggered if the network name, or Signal Set Identifier (SSID), changes.

This event updates the ssid property.

Examples

The following example demonstrates how to listen for the connectionChanged event.

var oGadgetDocument = System.Gadget.document;
System.Network.Wireless.connectionChanged = ConnectionChanged;

// --------------------------------------------------------------------
// Display the network SSID.
// --------------------------------------------------------------------
function ConnectionChanged()
{
    oGadgetDocument.getElementById("strFeedback").innerText = "SSID: " + System.Network.Wireless.ssid;
}

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.00 or later

See Also

System.Network.Wireless

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK