Export (0) Print
Expand All

HttpBrowserCapabilitiesBase Class

Serves as the base class for classes that enable the server to gather information about the capabilities of the browser that made the current request.

System.Object
  System.Web.HttpBrowserCapabilitiesBase
    System.Web.HttpBrowserCapabilitiesWrapper

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

'Declaration
Public MustInherit Class HttpBrowserCapabilitiesBase _
	Implements IFilterResolutionService

The HttpBrowserCapabilitiesBase type exposes the following members.

  NameDescription
Protected methodHttpBrowserCapabilitiesBaseInitializes the class for use by an inherited class instance. This constructor can only be called by an inherited class.
Top

  NameDescription
Public propertyActiveXControlsWhen overridden in a derived class, gets a value that indicates whether the browser is capable of supporting ActiveX controls.
Public propertyAdaptersWhen overridden in a derived class, gets the collection of available control adapters.
Public propertyAOLWhen overridden in a derived class, gets a value that indicates whether the client is an America Online (AOL) browser.
Public propertyBackgroundSoundsWhen overridden in a derived class, gets a value that indicates whether the browser supports playing background sounds by using the bgsounds HTML element.
Public propertyBetaWhen overridden in a derived class, gets a value that indicates whether the browser is a beta version.
Public propertyBrowserWhen overridden in a derived class, gets the browser string (if any) that was sent by the browser in the User-Agent request header.
Public propertyBrowsersWhen overridden in a derived class, gets a collection of browsers for which capabilities are recognized.
Public propertyCanCombineFormsInDeckWhen overridden in a derived class, gets a value that indicates whether the browser supports decks that contain multiple forms, such as separate cards.
Public propertyCanInitiateVoiceCallWhen overridden in a derived class, gets a value that indicates whether the browser device is capable of initiating a voice call.
Public propertyCanRenderAfterInputOrSelectElementWhen overridden in a derived class, gets a value that indicates whether the browser supports page content that follows WML select or input elements.
Public propertyCanRenderEmptySelectsWhen overridden in a derived class, gets a value that indicates whether the browser supports empty HTML select elements.
Public propertyCanRenderInputAndSelectElementsTogetherWhen overridden in a derived class, gets a value that indicates whether the browser supports WML input and select elements together in the same card.
Public propertyCanRenderMixedSelectsWhen overridden in a derived class, gets a value that indicates whether the browser supports WML option elements that specify both onpick and value attributes.
Public propertyCanRenderOneventAndPrevElementsTogetherWhen overridden in a derived class, gets a value that indicates whether the browser supports WML onevent and prev elements in the same card.
Public propertyCanRenderPostBackCardsWhen overridden in a derived class, gets a value that indicates whether the browser supports WML cards for postback.
Public propertyCanRenderSetvarZeroWithMultiSelectionListWhen overridden in a derived class, gets a value that indicates whether the browser supports WML setvar elements that have a value attribute of 0.
Public propertyCanSendMailWhen overridden in a derived class, gets a value that indicates whether the browser supports sending e-mail messages by using the HTML mailto scheme.
Public propertyCapabilitiesWhen overridden in a derived class, used internally to get the defined capabilities of the browser.
Public propertyCDFWhen overridden in a derived class, gets a value that indicates whether the browser supports Channel Definition Format (CDF) for webcasting.
Public propertyClrVersionWhen overridden in a derived class, gets the version of the .NET Framework that is installed on the client.
Public propertyCookiesWhen overridden in a derived class, gets a value that indicates whether the browser is capable of supporting cookies.
Public propertyCrawlerWhen overridden in a derived class, gets a value that indicates whether the browser is a search-engine Web crawler.
Public propertyDefaultSubmitButtonLimitWhen overridden in a derived class, gets the maximum number of submit buttons that are allowed for a form.
Public propertyEcmaScriptVersionWhen overridden in a derived class, gets the version number of ECMAScript (JavaScript) that the browser supports.
Public propertyFramesWhen overridden in a derived class, gets a value that indicates whether the browser supports HTML frames.
Public propertyGatewayMajorVersionWhen overridden in a derived class, gets the major version number of the wireless gateway that is used to access the server, if known.
Public propertyGatewayMinorVersionWhen overridden in a derived class, gets the minor version number of the wireless gateway that is used to access the server, if known.
Public propertyGatewayVersionWhen overridden in a derived class, gets the version of the wireless gateway that is used to access the server, if known.
Public propertyHasBackButtonWhen overridden in a derived class, gets a value that indicates whether the browser has a dedicated Back button.
Public propertyHidesRightAlignedMultiselectScrollbarsWhen overridden in a derived class, gets a value that indicates whether the scrollbar of an HTML select multiple element that has an align attribute value of right is obscured upon rendering.
Public propertyHtmlTextWriterWhen overridden in a derived class, gets or sets the fully qualified class name of the HtmlTextWriter to use for writing markup characters and text.
Public propertyIdWhen overridden in a derived class, gets the internal identifier of the browser as specified in the browser definition file.
Public propertyInputTypeWhen overridden in a derived class, gets the type of input that is supported by the browser.
Public propertyIsColorWhen overridden in a derived class, gets a value that indicates whether the browser has a color display.
Public propertyIsMobileDeviceWhen overridden in a derived class, gets a value that indicates whether the browser is a recognized mobile device.
Public propertyItemWhen overridden in a derived class, gets the value of the specified browser capability. In C#, this property is the indexer for the class.
Public propertyJavaAppletsWhen overridden in a derived class, gets a value that indicates whether the browser supports Java.
Public propertyJScriptVersionWhen overridden in a derived class, gets the JScript version that the browser supports.
Public propertyMajorVersionWhen overridden in a derived class, gets the major (integer) version number of the browser.
Public propertyMaximumHrefLengthWhen overridden in a derived class, gets the maximum length in characters for the href attribute of an HTML a (anchor) element.
Public propertyMaximumRenderedPageSizeWhen overridden in a derived class, gets the maximum length of the page, in bytes, that the browser can display.
Public propertyMaximumSoftkeyLabelLengthWhen overridden in a derived class, gets the maximum length of the text that a soft-key label can display.
Public propertyMinorVersionWhen overridden in a derived class, gets the minor (decimal) version number of the browser.
Public propertyMinorVersionStringWhen overridden in a derived class, gets the minor (decimal) version number of the browser as a string.
Public propertyMobileDeviceManufacturerWhen overridden in a derived class, gets the name of the manufacturer of a mobile device, if known.
Public propertyMobileDeviceModelWhen overridden in a derived class, gets the model name of a mobile device, if known.
Public propertyMSDomVersionWhen overridden in a derived class, gets the version of the Microsoft HTML (MSHTML) Document Object Model (DOM) that the browser supports.
Public propertyNumberOfSoftkeysWhen overridden in a derived class, gets the number of softkeys on a mobile device.
Public propertyPlatformWhen overridden in a derived class, gets the name of the operating system that the client is using, if known.
Public propertyPreferredImageMimeWhen overridden in a derived class, gets the MIME type of the type of image content that the browser typically prefers.
Public propertyPreferredRenderingMimeWhen overridden in a derived class, gets the MIME type of the type of content that the browser typically prefers.
Public propertyPreferredRenderingTypeWhen overridden in a derived class, gets the general name for the type of content that the browser prefers.
Public propertyPreferredRequestEncodingWhen overridden in a derived class, gets the request encoding that the browser prefers.
Public propertyPreferredResponseEncodingWhen overridden in a derived class, gets the response encoding that the browser prefers.
Public propertyRendersBreakBeforeWmlSelectAndInputWhen overridden in a derived class, gets a value that indicates whether the browser renders a line break before WML select or input elements.
Public propertyRendersBreaksAfterHtmlListsWhen overridden in a derived class, gets a value that indicates whether the browser renders a line break after list-item elements.
Public propertyRendersBreaksAfterWmlAnchorWhen overridden in a derived class, gets a value that indicates whether the browser renders a line break after a standalone WML a (anchor) element.
Public propertyRendersBreaksAfterWmlInputWhen overridden in a derived class, gets a value that indicates whether the browser renders a line break after a WML input element.
Public propertyRendersWmlDoAcceptsInlineWhen overridden in a derived class, gets a value that indicates whether the mobile-device browser renders a WML do form accept construct as an inline button instead of as a softkey.
Public propertyRendersWmlSelectsAsMenuCardsWhen overridden in a derived class, gets a value that indicates whether the browser renders WML select elements as menu cards, instead of as a combo box.
Public propertyRequiredMetaTagNameValueWhen overridden in a derived class, used internally to produce a meta-tag that is required by some browsers.
Public propertyRequiresAttributeColonSubstitutionWhen overridden in a derived class, gets a value that indicates whether the browser requires colons in element attribute values to be replaced with a different character.
Public propertyRequiresContentTypeMetaTagWhen overridden in a derived class, gets a value that indicates whether the browser requires an HTML meta element for which the content-type attribute is specified.
Public propertyRequiresControlStateInSessionWhen overridden in a derived class, gets a value that indicates whether the browser requires control state to be maintained in sessions.
Public propertyRequiresDBCSCharacterWhen overridden in a derived class, gets a value that indicates whether the browser requires a double-byte character set.
Public propertyRequiresHtmlAdaptiveErrorReportingWhen overridden in a derived class, gets a value that indicates whether the browser requires nonstandard error messages.
Public propertyRequiresLeadingPageBreakWhen overridden in a derived class, gets a value that indicates whether the browser requires the first element in the body of a Web page to be an HTML br element.
Public propertyRequiresNoBreakInFormattingWhen overridden in a derived class, gets a value that indicates whether the browser does not support HTML br elements to format line breaks.
Public propertyRequiresOutputOptimizationWhen overridden in a derived class, gets a value that indicates whether the browser requires pages to contain a size-optimized form of markup language tags.
Public propertyRequiresPhoneNumbersAsPlainTextWhen overridden in a derived class, gets a value that indicates whether the browser supports telephone dialing based on plain text, or whether it requires special markup.
Public propertyRequiresSpecialViewStateEncodingWhen overridden in a derived class, gets a value that indicates whether the browser requires view-state values to be specially encoded.
Public propertyRequiresUniqueFilePathSuffixWhen overridden in a derived class, gets a value that indicates whether the browser requires unique form-action URLs.
Public propertyRequiresUniqueHtmlCheckboxNamesWhen overridden in a derived class, gets a value that indicates whether the browser requires unique name attribute values for multiple HTML input type="checkbox" elements.
Public propertyRequiresUniqueHtmlInputNamesWhen overridden in a derived class, gets a value that indicates whether the browser requires unique name attribute values for multiple HTML input elements.
Public propertyRequiresUrlEncodedPostfieldValuesWhen overridden in a derived class, gets a value that indicates whether postback data that is sent by the browser will be URL-encoded.
Public propertyScreenBitDepthWhen overridden in a derived class, gets the depth of the display, in bits per pixel.
Public propertyScreenCharactersHeightWhen overridden in a derived class, gets the approximate height of the display, in character lines.
Public propertyScreenCharactersWidthWhen overridden in a derived class, gets the approximate width of the display, in characters.
Public propertyScreenPixelsHeightWhen overridden in a derived class, gets the approximate height of the display, in pixels.
Public propertyScreenPixelsWidthWhen overridden in a derived class, gets the approximate width of the display, in pixels.
Public propertySupportsAccesskeyAttributeWhen overridden in a derived class, gets a value that indicates whether the browser supports the accesskey attribute of HTML a (anchor) and input elements.
Public propertySupportsBodyColorWhen overridden in a derived class, gets a value that indicates whether the browser supports the bgcolor attribute of the HTML body element.
Public propertySupportsBoldWhen overridden in a derived class, gets a value that indicates whether the browser supports HTML b elements to format bold text.
Public propertySupportsCacheControlMetaTagWhen overridden in a derived class, gets a value that indicates whether the browser supports the cache-control value for the http-equiv attribute of HTML meta elements.
Public propertySupportsCallbackWhen overridden in a derived class, gets a value that indicates whether the browser supports callback scripts.
Public propertySupportsCssWhen overridden in a derived class, gets a value that indicates whether the browser supports cascading style sheets (CSS).
Public propertySupportsDivAlignWhen overridden in a derived class, gets a value that indicates whether the browser supports the align attribute of HTML div elements.
Public propertySupportsDivNoWrapWhen overridden in a derived class, gets a value that indicates whether the browser supports the nowrap attribute of HTML div elements.
Public propertySupportsEmptyStringInCookieValueWhen overridden in a derived class, gets a value that indicates whether the browser supports empty strings in cookie values.
Public propertySupportsFontColorWhen overridden in a derived class, gets a value that indicates whether the browser supports the color attribute of HTML font elements.
Public propertySupportsFontNameWhen overridden in a derived class, gets a value that indicates whether the browser supports the name attribute of HTML font elements.
Public propertySupportsFontSizeWhen overridden in a derived class, gets a value that indicates whether the browser supports the size attribute of HTML font elements.
Public propertySupportsImageSubmitWhen overridden in a derived class, gets a value that indicates whether the browser supports the use of a custom image in place of a standard form submit button.
Public propertySupportsIModeSymbolsWhen overridden in a derived class, gets a value that indicates whether the browser supports i-mode symbols.
Public propertySupportsInputIStyleWhen overridden in a derived class, gets a value that indicates whether the browser supports the istyle attribute of HTML input elements.
Public propertySupportsInputModeWhen overridden in a derived class, gets a value that indicates whether the browser supports the mode attribute of HTML input elements.
Public propertySupportsItalicWhen overridden in a derived class, gets a value that indicates whether the browser supports HTML i elements to format italic text.
Public propertySupportsJPhoneMultiMediaAttributesWhen overridden in a derived class, gets a value that indicates whether the browser supports J-Phone multimedia attributes.
Public propertySupportsJPhoneSymbolsWhen overridden in a derived class, gets a value that indicates whether the browser supports J-Phone–specific picture symbols.
Public propertySupportsQueryStringInFormActionWhen overridden in a derived class, gets a value that indicates whether the browser supports a query string in the action attribute value of HTML form elements.
Public propertySupportsRedirectWithCookieWhen overridden in a derived class, gets a value that indicates whether the browser supports cookies on redirection.
Public propertySupportsSelectMultipleWhen overridden in a derived class, gets a value that indicates whether the browser supports the multiple attribute of HTML select elements.
Public propertySupportsUncheckWhen overridden in a derived class, gets a value that indicates whether clearing a checked HTML input type="checkbox" element is reflected in postback data.
Public propertySupportsXmlHttpWhen overridden in a derived class, gets a value that indicates whether the browser supports receiving XML over HTTP.
Public propertyTablesWhen overridden in a derived class, gets a value that indicates whether the browser supports HTML table elements.
Public propertyTagWriterWhen overridden in a derived class, used internally to get the type of the object that is used to write tags for the browser.
Public propertyTypeWhen overridden in a derived class, gets the name and major (integer) version number of the browser.
Public propertyUseOptimizedCacheKeyWhen overridden in a derived class, used internally to get a value that indicates whether to use an optimized cache key.
Public propertyVBScriptWhen overridden in a derived class, gets a value that indicates whether the browser supports Visual Basic Scripting edition (VBScript).
Public propertyVersionWhen overridden in a derived class, gets the full version number (integer and decimal) of the browser as a string.
Public propertyW3CDomVersionWhen overridden in a derived class, gets the version of the World Wide Web Consortium (W3C) XML Document Object Model (DOM) that the browser supports.
Public propertyWin16When overridden in a derived class, gets a value that indicates whether the client is a Win16-based computer.
Public propertyWin32When overridden in a derived class, gets a value that indicates whether the client is a Win32-based computer.
Top

  NameDescription
Public methodAddBrowserWhen overridden in a derived class, used internally to add an entry to the internal collection of browsers for which capabilities are recognized.
Public methodCompareFiltersWhen overridden in a derived class, used internally to compare filters.
Public methodCreateHtmlTextWriterWhen overridden in a derived class, creates a new instance of the HtmlTextWriter object to use to render markup to the browser.
Public methodDisableOptimizedCacheKeyWhen overridden in a derived class, used internally to disable use of an optimized cache key.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodEvaluateFilterWhen overridden in a derived class, used internally to evaluate a filter.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetClrVersionsWhen overridden in a derived class, gets all versions of the .NET Framework common language runtime (CLR) that are installed on the client.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsBrowserWhen overridden in a derived class, gets a value that indicates whether the client browser is the same as the specified browser.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The HttpBrowserCapabilitiesBase class is an abstract class that contains the same members as the HttpBrowserCapabilities class. The HttpBrowserCapabilitiesBase class enables you to create derived classes that are like the HttpBrowserCapabilities class, but that you can customize and that work outside the ASP.NET pipeline. When you perform unit testing, you typically use a derived class to implement members with customized behavior that fulfills the scenario you are testing.

The HttpBrowserCapabilitiesWrapper class derives from the HttpBrowserCapabilitiesBase class. The HttpBrowserCapabilitiesWrapper class serves as a wrapper for the HttpBrowserCapabilities class. At run time, you typically use an instance of the HttpBrowserCapabilitiesWrapper class to call members of the HttpBrowserCapabilities object.

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft