System.Gadget.path Property
Gets the Universal Naming Convention (UNC) location of the gadget source files.
This property is read-only.
Syntax
propVal = System.Gadget.path()
Parameters
- strPath [out]
Retrieves the UNC location.
Remarks
Useful for referring to files within the gadget file structure.
Examples
The following example demonstrates how to play an ASX file from a gadget.
// mediaPlayer is the id of the Media Player object.
function StartPlayer()
{
mediaPlayer.url = System.Gadget.path + "\\mediafile.asx";
mediaPlayer.controls.play();
}
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
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK