Поделиться через


<use> Element

Specifies the HTTP request string used to parse browser capability information.

<configuration>
   <system.web>
      <browserCaps>
         <use>

<use var="[server variable]" as="[variableName]"/>

Optional Attributes

Attribute Description
var The Microsoft Internet Information Services (IIS) server variable that is parsed to extract browser capability information. The default is "HTTP_USER_AGENT"
as A name that can be used to reference the server variable in subsequent regular expressions.

Example

The following example specifies that the IIS HTTP_USER_AGENT server variable is the source of the browser capabilities information.

<use var="HTTP_USER_AGENT">

Requirements

Contained Within: <system.web>

Web Platform: IIS 5.0, IIS 5.1, IIS 6.0

Configuration File: Machine.config, Web.config

Configuration Section Handler: System.Web.Configuration. HttpCapabilitiesSectionHandler

See Also

<browserCaps> Element | ASP.NET Configuration | ASP.NET Settings Schema