System.Network.Wireless.connectionChanged event
[ The Windows Gadget Platform/Sidebar is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]
Event fired when the network connection changes.
Syntax
iRetVal = 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 [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
End of client support |
Windows 7 |
End of server support |
Windows Server 2008 |
IDL |
|
DLL |
|