Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
name
Collapse the table of content
Expand the table of content

System.Gadget.name property

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

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

This property is read-only.

Syntax


strname = System.Gadget.name


Property value

A String that receives the name of the gadget.

Remarks

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

Examples

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


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

// The gadget HTML file with inline script.
<html>
<head>
  <script>
    var mytext = "Gadget Name: " + System.Gadget.name;

    function setContentText()
    {
      gadgetContent.innerText = mytext;
    }
  </script>
</head>
<body onload="setContentText()">
  <span id="gadgetContent" style="font-family: Verdana; font-size: 20px;">name</span>
</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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft