System.Gadget.version Property

Gets the gadget version as specified in the gadget manifest file.

This property is read-only.


propVal = System.Gadget.version()



  • strVersion [out]
    Retrieves the version of the gadget.


A gadget must have a version specified in the gadget manifest file in order to be displayed in the Gadget Picker.

Possible uses include checking if a newer version of a gadget is available or displaying warnings of possible conflicts with other versions of the same gadget.


The following example demonstrates how to get the version of a gadget from the gadget manifest.

// The gadget manifest.
  <name>SDK Docked</name>

// The gadget HTML file with inline script.
    var mytext = "Gadget Version: " + System.Gadget.version;

    function setContentText()
      gadgetContent.innerText = mytext;
<body onload="setContentText()">
  <span id="gadgetContent" style="font-family: Verdana; font-size: 20px;"/>


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

See Also




Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK