ContainerVersion Property (.NET)

Type: Double

 

ContainerVersion returns the version number of the actual browser in which an embedded IE engine is contained within. For example, when Netscape 8.0.3 is used in IE emulation mode this property returns 8.0. For AOL Explorer 1.1 it returns 1.1. For content viewed via Windows Media Player, it returns the version number of the media player. For browsers that are not running IE emulation this property will be equal to 0.

 

Tip: ContainerVersion is a numeric representation of the version number of a browser. Since numeric values cannot have more than one decimal, any additional version information beyond the major and minor version number are truncated. For example Netscape 8.0.3 results in a ContainerVersion of 8.0. To obtain the complete version number, use the ContainerFullversion property, which in this case returns "8.0.3".

 

Tip: See the ContainerBrowser property for an example of using BrowserHawk to detect browsers that emulate Internet Explorer.

 

See Also:

Detecting Browsers That Emulate Internet Explorer

ContainerBrowser Property (.NET)

ContainerFullversion Property (.NET)