HttpBrowserCapabilitiesBase Class
TOC
Collapse the table of content
Expand the table of content

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.

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

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

public abstract class HttpBrowserCapabilitiesBase : IFilterResolutionService

NameDescription
System_CAPS_protmethodHttpBrowserCapabilitiesBase()

Initializes the class for use by an inherited class instance. This constructor can only be called by an inherited class.

NameDescription
System_CAPS_pubpropertyActiveXControls

When overridden in a derived class, gets a value that indicates whether the browser is capable of supporting ActiveX controls.

System_CAPS_pubpropertyAdapters

When overridden in a derived class, gets the collection of available control adapters.

System_CAPS_pubpropertyAOL

When overridden in a derived class, gets a value that indicates whether the client is an America Online (AOL) browser.

System_CAPS_pubpropertyBackgroundSounds

When overridden in a derived class, gets a value that indicates whether the browser supports playing background sounds by using the bgsounds HTML element.

System_CAPS_pubpropertyBeta

When overridden in a derived class, gets a value that indicates whether the browser is a beta version.

System_CAPS_pubpropertyBrowser

When overridden in a derived class, gets the browser string (if any) that was sent by the browser in the User-Agent request header.

System_CAPS_pubpropertyBrowsers

When overridden in a derived class, gets a collection of browsers for which capabilities are recognized.

System_CAPS_pubpropertyCanCombineFormsInDeck

When overridden in a derived class, gets a value that indicates whether the browser supports decks that contain multiple forms, such as separate cards.

System_CAPS_pubpropertyCanInitiateVoiceCall

When overridden in a derived class, gets a value that indicates whether the browser device is capable of initiating a voice call.

System_CAPS_pubpropertyCanRenderAfterInputOrSelectElement

When overridden in a derived class, gets a value that indicates whether the browser supports page content that follows WML select or input elements.

System_CAPS_pubpropertyCanRenderEmptySelects

When overridden in a derived class, gets a value that indicates whether the browser supports empty HTML select elements.

System_CAPS_pubpropertyCanRenderInputAndSelectElementsTogether

When overridden in a derived class, gets a value that indicates whether the browser supports WML input and select elements together in the same card.

System_CAPS_pubpropertyCanRenderMixedSelects

When overridden in a derived class, gets a value that indicates whether the browser supports WML option elements that specify both onpick and value attributes.

System_CAPS_pubpropertyCanRenderOneventAndPrevElementsTogether

When overridden in a derived class, gets a value that indicates whether the browser supports WML onevent and prev elements in the same card.

System_CAPS_pubpropertyCanRenderPostBackCards

When overridden in a derived class, gets a value that indicates whether the browser supports WML cards for postback.

System_CAPS_pubpropertyCanRenderSetvarZeroWithMultiSelectionList

When overridden in a derived class, gets a value that indicates whether the browser supports WML setvar elements that have a value attribute of 0.

System_CAPS_pubpropertyCanSendMail

When overridden in a derived class, gets a value that indicates whether the browser supports sending e-mail messages by using the HTML mailto scheme.

System_CAPS_pubpropertyCapabilities

When overridden in a derived class, used internally to get the defined capabilities of the browser.

System_CAPS_pubpropertyCDF

When overridden in a derived class, gets a value that indicates whether the browser supports Channel Definition Format (CDF) for webcasting.

System_CAPS_pubpropertyClrVersion

When overridden in a derived class, gets the version of the .NET Framework that is installed on the client.

System_CAPS_pubpropertyCookies

When overridden in a derived class, gets a value that indicates whether the browser is capable of supporting cookies.

System_CAPS_pubpropertyCrawler

When overridden in a derived class, gets a value that indicates whether the browser is a search-engine Web crawler.

System_CAPS_pubpropertyDefaultSubmitButtonLimit

When overridden in a derived class, gets the maximum number of submit buttons that are allowed for a form.

System_CAPS_pubpropertyEcmaScriptVersion

When overridden in a derived class, gets the version number of ECMAScript (JavaScript) that the browser supports.

System_CAPS_pubpropertyFrames

When overridden in a derived class, gets a value that indicates whether the browser supports HTML frames.

System_CAPS_pubpropertyGatewayMajorVersion

When overridden in a derived class, gets the major version number of the wireless gateway that is used to access the server, if known.

System_CAPS_pubpropertyGatewayMinorVersion

When overridden in a derived class, gets the minor version number of the wireless gateway that is used to access the server, if known.

System_CAPS_pubpropertyGatewayVersion

When overridden in a derived class, gets the version of the wireless gateway that is used to access the server, if known.

System_CAPS_pubpropertyHasBackButton

When overridden in a derived class, gets a value that indicates whether the browser has a dedicated Back button.

System_CAPS_pubpropertyHidesRightAlignedMultiselectScrollbars

When 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.

System_CAPS_pubpropertyHtmlTextWriter

When overridden in a derived class, gets or sets the fully qualified class name of the HtmlTextWriter to use for writing markup characters and text.

System_CAPS_pubpropertyId

When overridden in a derived class, gets the internal identifier of the browser as specified in the browser definition file.

System_CAPS_pubpropertyInputType

When overridden in a derived class, gets the type of input that is supported by the browser.

System_CAPS_pubpropertyIsColor

When overridden in a derived class, gets a value that indicates whether the browser has a color display.

System_CAPS_pubpropertyIsMobileDevice

When overridden in a derived class, gets a value that indicates whether the browser is a recognized mobile device.

System_CAPS_pubpropertyItem[String]

When overridden in a derived class, gets the value of the specified browser capability. In C#, this property is the indexer for the class.

System_CAPS_pubpropertyJavaApplets

When overridden in a derived class, gets a value that indicates whether the browser supports Java.

System_CAPS_pubpropertyJScriptVersion

When overridden in a derived class, gets the JScript version that the browser supports.

System_CAPS_pubpropertyMajorVersion

When overridden in a derived class, gets the major (integer) version number of the browser.

System_CAPS_pubpropertyMaximumHrefLength

When overridden in a derived class, gets the maximum length in characters for the href attribute of an HTML a (anchor) element.

System_CAPS_pubpropertyMaximumRenderedPageSize

When overridden in a derived class, gets the maximum length of the page, in bytes, that the browser can display.

System_CAPS_pubpropertyMaximumSoftkeyLabelLength

When overridden in a derived class, gets the maximum length of the text that a soft-key label can display.

System_CAPS_pubpropertyMinorVersion

When overridden in a derived class, gets the minor (decimal) version number of the browser.

System_CAPS_pubpropertyMinorVersionString

When overridden in a derived class, gets the minor (decimal) version number of the browser as a string.

System_CAPS_pubpropertyMobileDeviceManufacturer

When overridden in a derived class, gets the name of the manufacturer of a mobile device, if known.

System_CAPS_pubpropertyMobileDeviceModel

When overridden in a derived class, gets the model name of a mobile device, if known.

System_CAPS_pubpropertyMSDomVersion

When overridden in a derived class, gets the version of the Microsoft HTML (MSHTML) Document Object Model (DOM) that the browser supports.

System_CAPS_pubpropertyNumberOfSoftkeys

When overridden in a derived class, gets the number of softkeys on a mobile device.

System_CAPS_pubpropertyPlatform

When overridden in a derived class, gets the name of the operating system that the client is using, if known.

System_CAPS_pubpropertyPreferredImageMime

When overridden in a derived class, gets the MIME type of the type of image content that the browser typically prefers.

System_CAPS_pubpropertyPreferredRenderingMime

When overridden in a derived class, gets the MIME type of the type of content that the browser typically prefers.

System_CAPS_pubpropertyPreferredRenderingType

When overridden in a derived class, gets the general name for the type of content that the browser prefers.

System_CAPS_pubpropertyPreferredRequestEncoding

When overridden in a derived class, gets the request encoding that the browser prefers.

System_CAPS_pubpropertyPreferredResponseEncoding

When overridden in a derived class, gets the response encoding that the browser prefers.

System_CAPS_pubpropertyRendersBreakBeforeWmlSelectAndInput

When overridden in a derived class, gets a value that indicates whether the browser renders a line break before WML select or input elements.

System_CAPS_pubpropertyRendersBreaksAfterHtmlLists

When overridden in a derived class, gets a value that indicates whether the browser renders a line break after list-item elements.

System_CAPS_pubpropertyRendersBreaksAfterWmlAnchor

When overridden in a derived class, gets a value that indicates whether the browser renders a line break after a standalone WML a (anchor) element.

System_CAPS_pubpropertyRendersBreaksAfterWmlInput

When overridden in a derived class, gets a value that indicates whether the browser renders a line break after a WML input element.

System_CAPS_pubpropertyRendersWmlDoAcceptsInline

When 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.

System_CAPS_pubpropertyRendersWmlSelectsAsMenuCards

When 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.

System_CAPS_pubpropertyRequiredMetaTagNameValue

When overridden in a derived class, used internally to produce a meta-tag that is required by some browsers.

System_CAPS_pubpropertyRequiresAttributeColonSubstitution

When 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.

System_CAPS_pubpropertyRequiresContentTypeMetaTag

When 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.

System_CAPS_pubpropertyRequiresControlStateInSession

When overridden in a derived class, gets a value that indicates whether the browser requires control state to be maintained in sessions.

System_CAPS_pubpropertyRequiresDBCSCharacter

When overridden in a derived class, gets a value that indicates whether the browser requires a double-byte character set.

System_CAPS_pubpropertyRequiresHtmlAdaptiveErrorReporting

When overridden in a derived class, gets a value that indicates whether the browser requires nonstandard error messages.

System_CAPS_pubpropertyRequiresLeadingPageBreak

When 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.

System_CAPS_pubpropertyRequiresNoBreakInFormatting

When overridden in a derived class, gets a value that indicates whether the browser does not support HTML br elements to format line breaks.

System_CAPS_pubpropertyRequiresOutputOptimization

When 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.

System_CAPS_pubpropertyRequiresPhoneNumbersAsPlainText

When 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.

System_CAPS_pubpropertyRequiresSpecialViewStateEncoding

When overridden in a derived class, gets a value that indicates whether the browser requires view-state values to be specially encoded.

System_CAPS_pubpropertyRequiresUniqueFilePathSuffix

When overridden in a derived class, gets a value that indicates whether the browser requires unique form-action URLs.

System_CAPS_pubpropertyRequiresUniqueHtmlCheckboxNames

When 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.

System_CAPS_pubpropertyRequiresUniqueHtmlInputNames

When overridden in a derived class, gets a value that indicates whether the browser requires unique name attribute values for multiple HTML input elements.

System_CAPS_pubpropertyRequiresUrlEncodedPostfieldValues

When overridden in a derived class, gets a value that indicates whether postback data that is sent by the browser will be URL-encoded.

System_CAPS_pubpropertyScreenBitDepth

When overridden in a derived class, gets the depth of the display, in bits per pixel.

System_CAPS_pubpropertyScreenCharactersHeight

When overridden in a derived class, gets the approximate height of the display, in character lines.

System_CAPS_pubpropertyScreenCharactersWidth

When overridden in a derived class, gets the approximate width of the display, in characters.

System_CAPS_pubpropertyScreenPixelsHeight

When overridden in a derived class, gets the approximate height of the display, in pixels.

System_CAPS_pubpropertyScreenPixelsWidth

When overridden in a derived class, gets the approximate width of the display, in pixels.

System_CAPS_pubpropertySupportsAccesskeyAttribute

When overridden in a derived class, gets a value that indicates whether the browser supports the accesskey attribute of HTML a (anchor) and input elements.

System_CAPS_pubpropertySupportsBodyColor

When overridden in a derived class, gets a value that indicates whether the browser supports the bgcolor attribute of the HTML body element.

System_CAPS_pubpropertySupportsBold

When overridden in a derived class, gets a value that indicates whether the browser supports HTML b elements to format bold text.

System_CAPS_pubpropertySupportsCacheControlMetaTag

When 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.

System_CAPS_pubpropertySupportsCallback

When overridden in a derived class, gets a value that indicates whether the browser supports callback scripts.

System_CAPS_pubpropertySupportsCss

When overridden in a derived class, gets a value that indicates whether the browser supports cascading style sheets (CSS).

System_CAPS_pubpropertySupportsDivAlign

When overridden in a derived class, gets a value that indicates whether the browser supports the align attribute of HTML div elements.

System_CAPS_pubpropertySupportsDivNoWrap

When overridden in a derived class, gets a value that indicates whether the browser supports the nowrap attribute of HTML div elements.

System_CAPS_pubpropertySupportsEmptyStringInCookieValue

When overridden in a derived class, gets a value that indicates whether the browser supports empty strings in cookie values.

System_CAPS_pubpropertySupportsFontColor

When overridden in a derived class, gets a value that indicates whether the browser supports the color attribute of HTML font elements.

System_CAPS_pubpropertySupportsFontName

When overridden in a derived class, gets a value that indicates whether the browser supports the name attribute of HTML font elements.

System_CAPS_pubpropertySupportsFontSize

When overridden in a derived class, gets a value that indicates whether the browser supports the size attribute of HTML font elements.

System_CAPS_pubpropertySupportsImageSubmit

When 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.

System_CAPS_pubpropertySupportsIModeSymbols

When overridden in a derived class, gets a value that indicates whether the browser supports i-mode symbols.

System_CAPS_pubpropertySupportsInputIStyle

When overridden in a derived class, gets a value that indicates whether the browser supports the istyle attribute of HTML input elements.

System_CAPS_pubpropertySupportsInputMode

When overridden in a derived class, gets a value that indicates whether the browser supports the mode attribute of HTML input elements.

System_CAPS_pubpropertySupportsItalic

When overridden in a derived class, gets a value that indicates whether the browser supports HTML i elements to format italic text.

System_CAPS_pubpropertySupportsJPhoneMultiMediaAttributes

When overridden in a derived class, gets a value that indicates whether the browser supports J-Phone multimedia attributes.

System_CAPS_pubpropertySupportsJPhoneSymbols

When overridden in a derived class, gets a value that indicates whether the browser supports J-Phone–specific picture symbols.

System_CAPS_pubpropertySupportsQueryStringInFormAction

When 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.

System_CAPS_pubpropertySupportsRedirectWithCookie

When overridden in a derived class, gets a value that indicates whether the browser supports cookies on redirection.

System_CAPS_pubpropertySupportsSelectMultiple

When overridden in a derived class, gets a value that indicates whether the browser supports the multiple attribute of HTML select elements.

System_CAPS_pubpropertySupportsUncheck

When overridden in a derived class, gets a value that indicates whether clearing a checked HTML input type="checkbox" element is reflected in postback data.

System_CAPS_pubpropertySupportsXmlHttp

When overridden in a derived class, gets a value that indicates whether the browser supports receiving XML over HTTP.

System_CAPS_pubpropertyTables

When overridden in a derived class, gets a value that indicates whether the browser supports HTML table elements.

System_CAPS_pubpropertyTagWriter

When overridden in a derived class, used internally to get the type of the object that is used to write tags for the browser.

System_CAPS_pubpropertyType

When overridden in a derived class, gets the name and major (integer) version number of the browser.

System_CAPS_pubpropertyUseOptimizedCacheKey

When overridden in a derived class, used internally to get a value that indicates whether to use an optimized cache key.

System_CAPS_pubpropertyVBScript

When overridden in a derived class, gets a value that indicates whether the browser supports Visual Basic Scripting edition (VBScript).

System_CAPS_pubpropertyVersion

When overridden in a derived class, gets the full version number (integer and decimal) of the browser as a string.

System_CAPS_pubpropertyW3CDomVersion

When overridden in a derived class, gets the version of the World Wide Web Consortium (W3C) XML Document Object Model (DOM) that the browser supports.

System_CAPS_pubpropertyWin16

When overridden in a derived class, gets a value that indicates whether the client is a Win16-based computer.

System_CAPS_pubpropertyWin32

When overridden in a derived class, gets a value that indicates whether the client is a Win32-based computer.

NameDescription
System_CAPS_pubmethodAddBrowser(String)

When overridden in a derived class, used internally to add an entry to the internal collection of browsers for which capabilities are recognized.

System_CAPS_pubmethodCompareFilters(String, String)

When overridden in a derived class, used internally to compare filters.

System_CAPS_pubmethodCreateHtmlTextWriter(TextWriter)

When overridden in a derived class, creates a new instance of the HtmlTextWriter object to use to render markup to the browser.

System_CAPS_pubmethodDisableOptimizedCacheKey()

When overridden in a derived class, used internally to disable use of an optimized cache key.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodEvaluateFilter(String)

When overridden in a derived class, used internally to evaluate a filter.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetClrVersions()

When overridden in a derived class, gets all versions of the .NET Framework common language runtime (CLR) that are installed on the client.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIsBrowser(String)

When overridden in a derived class, gets a value that indicates whether the client browser is the same as the specified browser.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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
Available since 3.5

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

Return to top
Show:
© 2016 Microsoft