Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

getComponentVersion Method

This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10.

Obsolete. Retrieves the version of the specified component.


sVersion = clientCaps.getComponentVersion(sID, sIDType)


sID Required. A String that specifies any of the component identifiers listed in the Detectable Components in Internet Explorer document.
sIDType Required. A String that specifies the case-insensitive type of the identifier specified in sID, or the following value:
Active Setup identifier of the component.

Return Value

String. Returns the version number of the component, if it is installed, or null otherwise.


 New for Windows Internet Explorer 9 Internet Explorer 9. Obsolete. Do not use.

Only Internet Explorer components are detected by this method. If a component identifier of a third-party component is specified, the method returns null .


This example detects whether the Microsoft virtual machine is installed and, if it is, uses the getComponentVersion method to indicate the version of the component currently installed.

<HTML xmlns:IE>
@media all {
      IE\:clientCaps {behavior:url(#default#clientcaps)}

<IE:clientCaps ID="oClientCaps" />

    sMSvmVersion = oClientCaps.getComponentVersion("{08B0E5C0-4FCB-11CF-AAA5-00401C608500}",


Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/clientcaps/isMSvmThere.htm

Applies To


See Also

Community Additions

© 2015 Microsoft