.NET Framework Class Library
HttpBrowserCapabilities Class

Enables the server to gather information on the capabilities of the browser that is running on the client.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)
Syntax
Public Class HttpBrowserCapabilities _
	Inherits [%$TOPIC/131dz8fy_en-us_VS_110_2_0_0_0_0%]
public class HttpBrowserCapabilities : [%$TOPIC/131dz8fy_en-us_VS_110_2_0_1_0_0%]
public ref class HttpBrowserCapabilities : public [%$TOPIC/131dz8fy_en-us_VS_110_2_0_2_0_0%]
type HttpBrowserCapabilities =  
    class 
        inherit [%$TOPIC/131dz8fy_en-us_VS_110_2_0_3_0_0%] 
    end

The HttpBrowserCapabilities type exposes the following members.

Constructors
  NameDescription
Public method HttpBrowserCapabilitiesCreates a new instance of the HttpBrowserCapabilities class.
Top
Properties
  NameDescription
Public property ActiveXControlsGets a value indicating whether the browser supports ActiveX controls. (Inherited from HttpCapabilitiesBase.)
Public property AdaptersInfrastructure. Returns the collection of available control adapters. (Inherited from HttpCapabilitiesBase.)
Public property AOLGets a value indicating whether the client is an America Online (AOL) browser. (Inherited from HttpCapabilitiesBase.)
Public property BackgroundSoundsGets a value indicating whether the browser supports playing background sounds using the <bgsounds> HTML element. (Inherited from HttpCapabilitiesBase.)
Public property BetaGets a value indicating whether the browser is a beta version. (Inherited from HttpCapabilitiesBase.)
Public property BrowserGets the browser string (if any) that was sent by the browser in the User-Agent request header. (Inherited from HttpCapabilitiesBase.)
Public property BrowsersGets an ArrayList of the browsers in the Capabilities dictionary. (Inherited from HttpCapabilitiesBase.)
Public property CanCombineFormsInDeckGets a value indicating whether the browser supports decks that contain multiple forms, such as separate cards. (Inherited from HttpCapabilitiesBase.)
Public property CanInitiateVoiceCallGets a value indicating whether the browser device is capable of initiating a voice call. (Inherited from HttpCapabilitiesBase.)
Public property CanRenderAfterInputOrSelectElementGets a value indicating whether the browser supports page content following WML <select> or <input> elements. (Inherited from HttpCapabilitiesBase.)
Public property CanRenderEmptySelectsGets a value indicating whether the browser supports empty HTML <select> elements. (Inherited from HttpCapabilitiesBase.)
Public property CanRenderInputAndSelectElementsTogetherGets a value indicating whether the browser supports WML INPUT and SELECT elements together on the same card. (Inherited from HttpCapabilitiesBase.)
Public property CanRenderMixedSelectsGets a value indicating whether the browser supports WML <option> elements that specify both onpick and value attributes. (Inherited from HttpCapabilitiesBase.)
Public property CanRenderOneventAndPrevElementsTogetherGets a value indicating whether the browser supports WML <onevent> and <prev> elements that coexist within the same WML card. (Inherited from HttpCapabilitiesBase.)
Public property CanRenderPostBackCardsGets a value indicating whether the browser supports WML cards for postback. (Inherited from HttpCapabilitiesBase.)
Public property CanRenderSetvarZeroWithMultiSelectionListGets a value indicating whether the browser supports WML <setvar> elements with a value attribute of 0. (Inherited from HttpCapabilitiesBase.)
Public property CanSendMailGets a value indicating whether the browser supports sending e-mail by using the HTML <mailto> element for displaying electronic addresses. (Inherited from HttpCapabilitiesBase.)
Public property CapabilitiesInfrastructure. Used internally to get the defined capabilities of the browser. (Inherited from HttpCapabilitiesBase.)
Public property CDFGets a value indicating whether the browser supports Channel Definition Format (CDF) for webcasting. (Inherited from HttpCapabilitiesBase.)
Public property ClrVersionGets the version of the .NET Framework that is installed on the client. (Inherited from HttpCapabilitiesBase.)
Public property CookiesGets a value indicating whether the browser supports cookies. (Inherited from HttpCapabilitiesBase.)
Public property CrawlerGets a value indicating whether the browser is a search engine Web crawler. (Inherited from HttpCapabilitiesBase.)
Public property DefaultSubmitButtonLimitReturns the maximum number of Submit buttons that are allowed for a form. (Inherited from HttpCapabilitiesBase.)
Public property EcmaScriptVersionGets the version number of ECMAScript that the browser supports. (Inherited from HttpCapabilitiesBase.)
Public property FramesGets a value indicating whether the browser supports HTML frames. (Inherited from HttpCapabilitiesBase.)
Public property GatewayMajorVersionGets the major version number of the wireless gateway used to access the server, if known. (Inherited from HttpCapabilitiesBase.)
Public property GatewayMinorVersionGets the minor version number of the wireless gateway used to access the server, if known. (Inherited from HttpCapabilitiesBase.)
Public property GatewayVersionGets the version of the wireless gateway used to access the server, if known. (Inherited from HttpCapabilitiesBase.)
Public property HasBackButtonGets a value indicating whether the browser has a dedicated Back button. (Inherited from HttpCapabilitiesBase.)
Public property HidesRightAlignedMultiselectScrollbarsGets a value indicating whether the scrollbar of an HTML <select multiple> element with an align attribute value of right is obscured upon rendering. (Inherited from HttpCapabilitiesBase.)
Public property HtmlTextWriterGets or sets the fully qualified class name of the HtmlTextWriter to use. (Inherited from HttpCapabilitiesBase.)
Public property IdGets the internal identifier of the browser as specified in the browser definition file. (Inherited from HttpCapabilitiesBase.)
Public property InputTypeReturns the type of input supported by browser. (Inherited from HttpCapabilitiesBase.)
Public property IsColorGets a value indicating whether the browser has a color display. (Inherited from HttpCapabilitiesBase.)
Public property IsMobileDeviceGets a value indicating whether the browser is a recognized mobile device. (Inherited from HttpCapabilitiesBase.)
Public property ItemGets the value of the specified browser capability. In C#, this property is the indexer for the class. (Inherited from HttpCapabilitiesBase.)
Public property JavaAppletsGets a value indicating whether the browser supports Java. (Inherited from HttpCapabilitiesBase.)
Public property JavaScriptObsolete. Gets a value indicating whether the browser supports JavaScript. (Inherited from HttpCapabilitiesBase.)
Public property JScriptVersionGets the JScript version that the browser supports. (Inherited from HttpCapabilitiesBase.)
Public property MajorVersionGets the major (integer) version number of the browser. (Inherited from HttpCapabilitiesBase.)
Public property MaximumHrefLengthGets the maximum length in characters for the href attribute of an HTML <a> (anchor) element. (Inherited from HttpCapabilitiesBase.)
Public property MaximumRenderedPageSizeGets the maximum length of the page, in bytes, which the browser can display. (Inherited from HttpCapabilitiesBase.)
Public property MaximumSoftkeyLabelLengthReturns the maximum length of the text that a soft-key label can display. (Inherited from HttpCapabilitiesBase.)
Public property MinorVersionGets the minor (that is, decimal) version number of the browser. (Inherited from HttpCapabilitiesBase.)
Public property MinorVersionStringGets the minor (decimal) version number of the browser as a string. (Inherited from HttpCapabilitiesBase.)
Public property MobileDeviceManufacturerReturns the name of the manufacturer of a mobile device, if known. (Inherited from HttpCapabilitiesBase.)
Public property MobileDeviceModelGets the model name of a mobile device, if known. (Inherited from HttpCapabilitiesBase.)
Public property MSDomVersionGets the version of Microsoft HTML (MSHTML) Document Object Model (DOM) that the browser supports. (Inherited from HttpCapabilitiesBase.)
Public property NumberOfSoftkeysReturns the number of soft keys on a mobile device. (Inherited from HttpCapabilitiesBase.)
Public property PlatformGets the name of the platform that the client uses, if it is known. (Inherited from HttpCapabilitiesBase.)
Public property PreferredImageMimeReturns the MIME type of the type of image content typically preferred by the browser. (Inherited from HttpCapabilitiesBase.)
Public property PreferredRenderingMimeReturns the MIME type of the type of content typically preferred by the browser. (Inherited from HttpCapabilitiesBase.)
Public property PreferredRenderingTypeGets the general name for the type of content that the browser prefers. (Inherited from HttpCapabilitiesBase.)
Public property PreferredRequestEncodingGets the request encoding preferred by the browser. (Inherited from HttpCapabilitiesBase.)
Public property PreferredResponseEncodingGets the response encoding preferred by the browser. (Inherited from HttpCapabilitiesBase.)
Public property RendersBreakBeforeWmlSelectAndInputGets a value indicating whether the browser renders a line break before <select> or <input> elements. (Inherited from HttpCapabilitiesBase.)
Public property RendersBreaksAfterHtmlListsGets a value indicating whether the browser renders a line break after list-item elements. (Inherited from HttpCapabilitiesBase.)
Public property RendersBreaksAfterWmlAnchorGets a value indicating whether the browser renders a line break after a stand-alone HTML <a> (anchor) element. (Inherited from HttpCapabilitiesBase.)
Public property RendersBreaksAfterWmlInputGets a value indicating whether the browser renders a line break after an HTML <input> element. (Inherited from HttpCapabilitiesBase.)
Public property RendersWmlDoAcceptsInlineGets a value indicating whether the mobile-device browser renders a WML do-based form accept construct as an inline button rather than as a soft key. (Inherited from HttpCapabilitiesBase.)
Public property RendersWmlSelectsAsMenuCardsGets a value indicating whether the browser renders WML <select> elements as menu cards, rather than as a combo box. (Inherited from HttpCapabilitiesBase.)
Public property RequiredMetaTagNameValueInfrastructure. Used internally to produce a meta-tag required by some browsers. (Inherited from HttpCapabilitiesBase.)
Public property RequiresAttributeColonSubstitutionGets a value indicating whether the browser requires colons in element attribute values to be substituted with a different character. (Inherited from HttpCapabilitiesBase.)
Public property RequiresContentTypeMetaTagGets a value indicating whether the browser requires an HTML <meta> element for which the content-type attribute is specified. (Inherited from HttpCapabilitiesBase.)
Public property RequiresControlStateInSessionGets a value indicating whether the browser requires control state to be maintained in sessions. (Inherited from HttpCapabilitiesBase.)
Public property RequiresDBCSCharacterGets a value indicating whether the browser requires a double-byte character set. (Inherited from HttpCapabilitiesBase.)
Public property RequiresHtmlAdaptiveErrorReportingGets a value indicating whether the browser requires nonstandard error messages. (Inherited from HttpCapabilitiesBase.)
Public property RequiresLeadingPageBreakGets a value indicating whether the browser requires the first element in the body of a Web page to be an HTML <br> element. (Inherited from HttpCapabilitiesBase.)
Public property RequiresNoBreakInFormattingGets a value indicating whether the browser does not support HTML <br> elements to format line breaks. (Inherited from HttpCapabilitiesBase.)
Public property RequiresOutputOptimizationGets a value indicating whether the browser requires pages to contain a size-optimized form of markup language tags. (Inherited from HttpCapabilitiesBase.)
Public property RequiresPhoneNumbersAsPlainTextGets a value indicating whether the browser supports phone dialing based on plain text, or whether it requires special markup. (Inherited from HttpCapabilitiesBase.)
Public property RequiresSpecialViewStateEncodingGets a value indicating whether the browser requires VIEWSTATE values to be specially encoded. (Inherited from HttpCapabilitiesBase.)
Public property RequiresUniqueFilePathSuffixGets a value indicating whether the browser requires unique form-action URLs. (Inherited from HttpCapabilitiesBase.)
Public property RequiresUniqueHtmlCheckboxNamesGets a value indicating whether the browser requires unique name attribute values of multiple HTML <input type="checkbox"> elements. (Inherited from HttpCapabilitiesBase.)
Public property RequiresUniqueHtmlInputNamesGets a value indicating whether the browser requires unique name attribute values of multiple HTML <input> elements. (Inherited from HttpCapabilitiesBase.)
Public property RequiresUrlEncodedPostfieldValuesGets a value indicating whether postback data sent by the browser will be UrlEncoded. (Inherited from HttpCapabilitiesBase.)
Public property ScreenBitDepthReturns the depth of the display, in bits per pixel. (Inherited from HttpCapabilitiesBase.)
Public property ScreenCharactersHeightReturns the approximate height of the display, in character lines. (Inherited from HttpCapabilitiesBase.)
Public property ScreenCharactersWidthReturns the approximate width of the display, in characters. (Inherited from HttpCapabilitiesBase.)
Public property ScreenPixelsHeightReturns the approximate height of the display, in pixels. (Inherited from HttpCapabilitiesBase.)
Public property ScreenPixelsWidthReturns the approximate width of the display, in pixels. (Inherited from HttpCapabilitiesBase.)
Public property SupportsAccesskeyAttributeGets a value indicating whether the browser supports the ACCESSKEY attribute of HTML <a> (anchor) and <input> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsBodyColorGets a value indicating whether the browser supports the bgcolor attribute of the HTML <body> element. (Inherited from HttpCapabilitiesBase.)
Public property SupportsBoldGets a value indicating whether the browser supports HTML <b> elements to format bold text. (Inherited from HttpCapabilitiesBase.)
Public property SupportsCacheControlMetaTagGets a value indicating whether the browser supports the cache-control value for the http-equiv attribute of HTML <meta> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsCallbackGets a value indicating whether the browser supports callback scripts. (Inherited from HttpCapabilitiesBase.)
Public property SupportsCssGets a value indicating whether the browser supports Cascading Style Sheets (CSS). (Inherited from HttpCapabilitiesBase.)
Public property SupportsDivAlignGets a value indicating whether the browser supports the align attribute of HTML <div> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsDivNoWrapGets a value indicating whether the browser supports the nowrap attribute of HTML <div> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsEmptyStringInCookieValueGets a value indicating whether the browser supports empty () strings in cookie values. (Inherited from HttpCapabilitiesBase.)
Public property SupportsFontColorGets a value indicating whether the browser supports the color attribute of HTML <font> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsFontNameGets a value indicating whether the browser supports the name attribute of HTML <font> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsFontSizeGets a value indicating whether the browser supports the size attribute of HTML <font> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsImageSubmitGets a value indicating whether the browser supports using a custom image in place of a standard form Submit button. (Inherited from HttpCapabilitiesBase.)
Public property SupportsIModeSymbolsGets a value indicating whether the browser supports i-mode symbols. (Inherited from HttpCapabilitiesBase.)
Public property SupportsInputIStyleGets a value indicating whether the browser supports the istyle attribute of HTML <input> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsInputModeGets a value indicating whether the browser supports the mode attribute of HTML <input> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsItalicGets a value indicating whether the browser supports HTML <i> elements to format italic text. (Inherited from HttpCapabilitiesBase.)
Public property SupportsJPhoneMultiMediaAttributesGets a value indicating whether the browser supports J-Phone multimedia attributes. (Inherited from HttpCapabilitiesBase.)
Public property SupportsJPhoneSymbolsGets a value indicating whether the browser supports J-Phone–specific picture symbols. (Inherited from HttpCapabilitiesBase.)
Public property SupportsQueryStringInFormActionGets a value indicating whether the browser supports a query string in the action attribute value of HTML <form> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsRedirectWithCookieGets a value indicating whether the browser supports cookies on redirection. (Inherited from HttpCapabilitiesBase.)
Public property SupportsSelectMultipleGets a value indicating whether the browser supports the multiple attribute of HTML <select> elements. (Inherited from HttpCapabilitiesBase.)
Public property SupportsUncheckGets a value indicating whether the clearing of a checked HTML <input type=checkbox> element is reflected in postback data. (Inherited from HttpCapabilitiesBase.)
Public property SupportsXmlHttpGets a value indicating whether the browser supports receiving XML over HTTP. (Inherited from HttpCapabilitiesBase.)
Public property TablesGets a value indicating whether the browser supports HTML <table> elements. (Inherited from HttpCapabilitiesBase.)
Public property TagWriterInfrastructure. Used internally to get the type of the object that is used to write tags for the browser. (Inherited from HttpCapabilitiesBase.)
Public property TypeGets the name and major (integer) version number of the browser. (Inherited from HttpCapabilitiesBase.)
Public property UseOptimizedCacheKeyInfrastructure. Used internally to get a value indicating whether to use an optimized cache key. (Inherited from HttpCapabilitiesBase.)
Public property VBScriptGets a value indicating whether the browser supports Visual Basic Scripting edition (VBScript). (Inherited from HttpCapabilitiesBase.)
Public property VersionGets the full version number (integer and decimal) of the browser as a string. (Inherited from HttpCapabilitiesBase.)
Public property W3CDomVersionGets the version of the World Wide Web Consortium (W3C) XML Document Object Model (DOM) that the browser supports. (Inherited from HttpCapabilitiesBase.)
Public property Win16Gets a value indicating whether the client is a Win16-based computer. (Inherited from HttpCapabilitiesBase.)
Public property Win32Gets a value indicating whether the client is a Win32-based computer. (Inherited from HttpCapabilitiesBase.)
Top
Methods
  NameDescription
Public method AddBrowserInfrastructure. Used internally to add an entry to the internal collection of browsers for which capabilities are recognized. (Inherited from HttpCapabilitiesBase.)
Public method CreateHtmlTextWriterCreates a new instance of the HtmlTextWriter to be used. (Inherited from HttpCapabilitiesBase.)
Public method DisableOptimizedCacheKeyInfrastructure. Used internally to disable use of an optimized cache key. (Inherited from HttpCapabilitiesBase.)
Public method Equals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetClrVersionsReturns all versions of the .NET Framework common language runtime that are installed on the client. (Inherited from HttpCapabilitiesBase.)
Public method GetHashCodeServes as the default hash function. (Inherited from Object.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Protected method InitInfrastructure. Used internally to initialize an internal set of values. (Inherited from HttpCapabilitiesBase.)
Public method IsBrowserGets a value indicating whether the client browser is the same as the specified browser. (Inherited from HttpCapabilitiesBase.)
Protected method MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implemetation Private method IFilterResolutionServiceCompareFiltersInfrastructure. Used internally to compare filters. (Inherited from HttpCapabilitiesBase.)
Explicit interface implemetation Private method IFilterResolutionServiceEvaluateFilterInfrastructure. Used internally to evaluate a filter. (Inherited from HttpCapabilitiesBase.)
Top
Remarks

The HttpBrowserCapabilities properties are accessible through the Browser property of the ASP.NET intrinsic Request object.

Version Information

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
Platforms

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.