HttpBrowserCapabilitiesBase Class

Definition

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.

public ref class HttpBrowserCapabilitiesBase abstract : System::Web::UI::IFilterResolutionService
public abstract class HttpBrowserCapabilitiesBase : System.Web.UI.IFilterResolutionService
type HttpBrowserCapabilitiesBase = class
    interface IFilterResolutionService
Public MustInherit Class HttpBrowserCapabilitiesBase
Implements IFilterResolutionService
Inheritance
HttpBrowserCapabilitiesBase
Derived
Implements

Remarks

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.

Constructors

Name Description
HttpBrowserCapabilitiesBase()

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

Properties

Name Description
ActiveXControls

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

Adapters

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

AOL

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

BackgroundSounds

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

Beta

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

Browser

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

Browsers

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

CanCombineFormsInDeck

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

CanInitiateVoiceCall

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

CanRenderAfterInputOrSelectElement

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

CanRenderEmptySelects

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

CanRenderInputAndSelectElementsTogether

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.

CanRenderMixedSelects

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.

CanRenderOneventAndPrevElementsTogether

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

CanRenderPostBackCards

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

CanRenderSetvarZeroWithMultiSelectionList

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.

CanSendMail

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

Capabilities

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

CDF

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

ClrVersion

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

Cookies

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

Crawler

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

DefaultSubmitButtonLimit

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

EcmaScriptVersion

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

Frames

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

GatewayMajorVersion

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

GatewayMinorVersion

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

GatewayVersion

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

HasBackButton

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

HidesRightAlignedMultiselectScrollbars

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.

HtmlTextWriter

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.

Id

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

InputType

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

IsColor

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

IsMobileDevice

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

Item[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.