MediaCenter.MajorVersion Property
Gets the major version number of the MediaCenter object.
Note This property has been deprecated.
Syntax
MediaCenter.MajorVersion
Property Value
A read-only Number (long) representing the major version number.
Remarks
This property enables you to retrieve the major version of the MediaCenter object that is being accessed on the user's computer.
HTML applications that are running under the Media Center shell can identify the shell version by querying the MediaCenter.MajorVersion and MediaCenter.MinorVersion properties. The following table shows the values of these properties for each release of Windows Media Center:
Release | MajorVersion | MinorVersion |
Windows XP Media Center Edition 2004 | 6 | 0 |
Windows XP Media Center Edition 2005 | 7 | 0 |
Update Rollup 2 for Windows XP Media Center Edition 2005 | 7 | 5 |
Windows Media Center in Windows Vista Ultimate or Windows Vista Home Premium | 8 | 0 |
Windows Media Center TV Pack | 8 | 1 |
Windows Media Center in Windows 7 | 9 | 0 |
Because 6.0 is the first available version of the MediaCenter object in HTML applications, the version number will never be less than 6.0.
For subsequent releases of Windows Media Center, the major and/or minor version numbers for this object will increment. Knowing which version the user is running, you can determine which new extensibility features are available on the user's machine, and adjust your code accordingly.
Note This version number applies specifically to the MediaCenter object and does not correspond to the version number for the operating system.
Requirements
Platform: HTML application hosted within Windows XP Media Center Edition 2004 through Windows Vista
See Also