System.Gadget.close method

[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. ]

Ends a running instance of a gadget.

Syntax

System.Gadget.close()

Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

The close method is asynchronous. The gadget script should not attempt to continue execution after the close call.

Examples

<html> 
<body onload="loaded()">
<script>
function loaded()
{
  window.setTimeout(close, 0);
}

function close()
{
  System.Gadget.close();
}
</script>
</body> 
</html>

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
Sidebar.idl
DLL
Sidebar.Exe (version 1.00 or later)

See also

System.Gadget