The browserCaps element specifies the settings of supported browsers and the capabilities for the supported browsers. The browserCaps element can be updated as required to specify new browsers and capabilities.
For a list of valid browser properties, see HttpBrowserCapabilities.
Lines of the form capsVariableName=regular expression are assignments. Use the syntax %{capsVariableName} or ${captureGroupName} in match attributes and on the right side of assignments.
For more information about how to use regular expressions, see .NET Framework Regular Expressions. For the full browserCaps section, with a complete example of this syntax, see the Machine.config file that is installed with the .NET Framework.
The name/value pairs that are captured with capsVariableName can be accessed through the Item property of the HttpBrowserCapabilities object that is inherited from the HttpCapabilitiesBase class. The Item property is the default indexer property in C#.
Default Configuration
In the .NET Framework version 2.0, the following limited default browserCaps element is configured in the root Web.config file because it is deprecated in favor of using browser definition files to specify supported browsers and capabilities. For more information, see Browser Definition File Schema (browsers Element).
|
<browserCaps userAgentCacheKeyLength="64">
<result
type="System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
</browserCaps>
|
In the .NET Framework versions 1.0 and 1.1, the default browserCaps element that is configured in the machine.config file is too large to list here. For updates to the browser data go to http://www.cyscape.com/browsercaps. Periodic device updates replace this browser capabilities section.