Retrieves the version of the specified component.
Syntax
sVersion = oClientCaps.getComponentVersion(sID, sIDType)
Parameters
sID Required. String that specifies any of the component identifiers listed in the Detectable Components in Internet Explorer document. sIDType Required. String that specifies the case-insensitive type of the identifier specified in sID, or the following value:
componentid Active Setup identifier of the component.
Return Value
String. Returns the version number of the component, if it is installed, or null otherwise.
Remarks
Only Microsoft® Internet Explorer components are detected by this method. If a component identifier of a third-party component is specified, the method returns null.
Example
This example detects whether Microsoft virtual machine is installed and, if it is, uses the getComponentVersion method to indicate the version of the component currently installed.
Sample Code
Applies To
clientCaps
See Also
Client Capabilities, Using DHTML Behaviors, compareVersions, isComponentInstalled