HttpBrowserCapabilitiesWrapper HttpBrowserCapabilitiesWrapper HttpBrowserCapabilitiesWrapper HttpBrowserCapabilitiesWrapper Class

Definition

Encapsulates the HTTP intrinsic object that enables the server to gather information about the capabilities of the browser that has made the current request.

public ref class HttpBrowserCapabilitiesWrapper : System::Web::HttpBrowserCapabilitiesBase
public class HttpBrowserCapabilitiesWrapper : System.Web.HttpBrowserCapabilitiesBase
type HttpBrowserCapabilitiesWrapper = class
    inherit HttpBrowserCapabilitiesBase
Public Class HttpBrowserCapabilitiesWrapper
Inherits HttpBrowserCapabilitiesBase
Inheritance
HttpBrowserCapabilitiesWrapperHttpBrowserCapabilitiesWrapperHttpBrowserCapabilitiesWrapperHttpBrowserCapabilitiesWrapper

Remarks

The HttpBrowserCapabilitiesWrapper class derives from the HttpBrowserCapabilitiesBase class and serves as a wrapper for the HttpBrowserCapabilities class. This class exposes the functionality of the HttpBrowserCapabilities class and exposes the HttpBrowserCapabilitiesBase type. The HttpBrowserCapabilitiesBase class enables you to replace the original implementation of the HttpBrowserCapabilities class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.

Constructors

HttpBrowserCapabilitiesWrapper(HttpBrowserCapabilities) HttpBrowserCapabilitiesWrapper(HttpBrowserCapabilities) HttpBrowserCapabilitiesWrapper(HttpBrowserCapabilities) HttpBrowserCapabilitiesWrapper(HttpBrowserCapabilities)

Initializes a new instance of the HttpBrowserCapabilitiesWrapper class.

Properties

ActiveXControls ActiveXControls ActiveXControls ActiveXControls

Gets a value that indicates whether the browser is capable of supporting ActiveX controls.

Adapters Adapters Adapters Adapters

Gets the collection of available control adapters.

AOL AOL AOL AOL

Gets a value that indicates whether the client is an America Online (AOL) browser.

BackgroundSounds BackgroundSounds BackgroundSounds BackgroundSounds

Gets a value that indicates whether the browser supports playing background sounds by using the bgsounds HTML element.

Beta Beta Beta Beta

Gets a value that indicates whether the browser is a beta version.

Browser Browser Browser Browser

Gets the browser string (if any) that was sent by the browser in the User-Agent request header.

Browsers Browsers Browsers Browsers

Gets a collection of browsers for which capabilities are recognized.

CanCombineFormsInDeck CanCombineFormsInDeck CanCombineFormsInDeck CanCombineFormsInDeck

Gets a value that indicates whether the browser supports decks that contain multiple forms, such as separate cards.

CanInitiateVoiceCall CanInitiateVoiceCall CanInitiateVoiceCall CanInitiateVoiceCall

Gets a value that indicates whether the browser device is capable of initiating a voice call.

CanRenderAfterInputOrSelectElement CanRenderAfterInputOrSelectElement CanRenderAfterInputOrSelectElement CanRenderAfterInputOrSelectElement

Gets a value that indicates whether the browser supports page content that follows WML select or input elements.

CanRenderEmptySelects CanRenderEmptySelects CanRenderEmptySelects CanRenderEmptySelects

Gets a value that indicates whether the browser supports empty HTML select elements.

CanRenderInputAndSelectElementsTogether CanRenderInputAndSelectElementsTogether CanRenderInputAndSelectElementsTogether CanRenderInputAndSelectElementsTogether

Gets a value that indicates whether the browser supports WML input and select elements together in the same card.

CanRenderMixedSelects CanRenderMixedSelects CanRenderMixedSelects CanRenderMixedSelects

Gets a value that indicates whether the browser supports WML option elements that specify both onpick and value attributes.

CanRenderOneventAndPrevElementsTogether CanRenderOneventAndPrevElementsTogether CanRenderOneventAndPrevElementsTogether CanRenderOneventAndPrevElementsTogether

Gets a value that indicates whether the browser supports WML onevent and prev elements in the same card.

CanRenderPostBackCards CanRenderPostBackCards CanRenderPostBackCards CanRenderPostBackCards

Gets a value that indicates whether the browser supports WML cards for postback.

CanRenderSetvarZeroWithMultiSelectionList CanRenderSetvarZeroWithMultiSelectionList CanRenderSetvarZeroWithMultiSelectionList CanRenderSetvarZeroWithMultiSelectionList

Gets a value that indicates whether the browser supports WML setvar elements that have a value attribute of 0.

CanSendMail CanSendMail CanSendMail CanSendMail

Gets a value that indicates whether the browser supports sending email messages by using the HTML mailto scheme.

Capabilities Capabilities Capabilities Capabilities

Used internally to get the defined capabilities of the browser.

CDF CDF CDF CDF

Gets a value that indicates whether the browser supports Channel Definition Format (CDF) for webcasting.

ClrVersion ClrVersion ClrVersion ClrVersion

Gets the version of the .NET Framework that is installed on the client.

Cookies Cookies Cookies Cookies

Gets a value that indicates whether the browser is capable of supporting cookies.

Crawler Crawler Crawler Crawler

Gets a value that indicates whether the browser is a search-engine Web crawler.

DefaultSubmitButtonLimit DefaultSubmitButtonLimit DefaultSubmitButtonLimit DefaultSubmitButtonLimit

Gets the maximum number of submit buttons that are allowed for a form.

EcmaScriptVersion EcmaScriptVersion EcmaScriptVersion EcmaScriptVersion

Gets the version number of ECMAScript (JavaScript) that the browser supports.

Frames Frames Frames Frames

Gets a value that indicates whether the browser supports HTML frames.

GatewayMajorVersion GatewayMajorVersion GatewayMajorVersion GatewayMajorVersion

Gets the major version number of the wireless gateway that is used to access the server, if known.

GatewayMinorVersion GatewayMinorVersion GatewayMinorVersion GatewayMinorVersion

Gets the minor version number of the wireless gateway that is used to access the server, if known.

GatewayVersion GatewayVersion GatewayVersion GatewayVersion

Gets the version of the wireless gateway that is used to access the server, if known.

HasBackButton HasBackButton HasBackButton HasBackButton

Gets a value that indicates whether the browser has a dedicated Back button.

HidesRightAlignedMultiselectScrollbars HidesRightAlignedMultiselectScrollbars HidesRightAlignedMultiselectScrollbars HidesRightAlignedMultiselectScrollbars

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 HtmlTextWriter HtmlTextWriter HtmlTextWriter

Gets or sets the fully qualified class name of the HtmlTextWriter to use for writing markup characters and text.

Id Id Id Id

Gets the internal identifier of the browser as specified in the browser definition file.

InputType InputType InputType InputType

Gets the type of input that is supported by the browser.

IsColor IsColor IsColor IsColor

Gets a value that indicates whether the browser has a color display.

IsMobileDevice IsMobileDevice IsMobileDevice IsMobileDevice

Gets a value that indicates whether the browser is a recognized mobile device.

Item[String] Item[String] Item[String] Item[String]

Gets the value of the specified browser capability. In C#, this property is the indexer for the class.

JavaApplets JavaApplets JavaApplets JavaApplets

Gets a value that indicates whether the browser supports Java.

JScriptVersion JScriptVersion JScriptVersion JScriptVersion

Gets the JScript version that the browser supports.

MajorVersion MajorVersion MajorVersion MajorVersion

Gets the major (integer) version number of the browser.

MaximumHrefLength MaximumHrefLength MaximumHrefLength MaximumHrefLength

Gets the maximum length in characters for the href attribute of an HTML a (anchor) element.

MaximumRenderedPageSize MaximumRenderedPageSize MaximumRenderedPageSize MaximumRenderedPageSize

Gets the maximum length of the page, in bytes, that the browser can display.

MaximumSoftkeyLabelLength MaximumSoftkeyLabelLength MaximumSoftkeyLabelLength MaximumSoftkeyLabelLength

Gets the maximum length of the text that a soft-key label can display.

MinorVersion MinorVersion MinorVersion MinorVersion

Gets the minor (decimal) version number of the browser.

MinorVersionString MinorVersionString MinorVersionString MinorVersionString

Gets the minor (decimal) version number of the browser as a string.

MobileDeviceManufacturer MobileDeviceManufacturer MobileDeviceManufacturer MobileDeviceManufacturer

Gets the name of the manufacturer of a mobile device, if known.

MobileDeviceModel MobileDeviceModel MobileDeviceModel MobileDeviceModel

Gets the model name of a mobile device, if known.

MSDomVersion MSDomVersion MSDomVersion MSDomVersion

Gets the version of the Microsoft HTML (MSHTML) Document Object Model (DOM) that the browser supports.

NumberOfSoftkeys NumberOfSoftkeys NumberOfSoftkeys NumberOfSoftkeys

Gets the number of softkeys on a mobile device.

Platform Platform Platform Platform

Gets the name of the operating system that the client is using, if known.

PreferredImageMime PreferredImageMime PreferredImageMime PreferredImageMime

Gets the MIME type of the type of image content that the browser typically prefers.

PreferredRenderingMime PreferredRenderingMime PreferredRenderingMime PreferredRenderingMime

Gets the MIME type of the type of content that the browser typically prefers.

PreferredRenderingType PreferredRenderingType PreferredRenderingType PreferredRenderingType

Gets the general name for the type of content that the browser prefers.

PreferredRequestEncoding PreferredRequestEncoding PreferredRequestEncoding PreferredRequestEncoding

Gets the request encoding that the browser prefers.

PreferredResponseEncoding PreferredResponseEncoding PreferredResponseEncoding PreferredResponseEncoding

Gets the response encoding that the browser prefers.

RendersBreakBeforeWmlSelectAndInput RendersBreakBeforeWmlSelectAndInput RendersBreakBeforeWmlSelectAndInput RendersBreakBeforeWmlSelectAndInput

Gets a value that indicates whether the browser renders a line break before select or input elements.

RendersBreaksAfterHtmlLists RendersBreaksAfterHtmlLists RendersBreaksAfterHtmlLists RendersBreaksAfterHtmlLists

Gets a value that indicates whether the browser renders a line break after list-item elements.

RendersBreaksAfterWmlAnchor RendersBreaksAfterWmlAnchor RendersBreaksAfterWmlAnchor RendersBreaksAfterWmlAnchor

Gets a value that indicates whether the browser renders a line break after a standalone WML a (anchor) element.

RendersBreaksAfterWmlInput RendersBreaksAfterWmlInput RendersBreaksAfterWmlInput RendersBreaksAfterWmlInput

Gets a value that indicates whether the browser renders a line break after a WML input element.

RendersWmlDoAcceptsInline RendersWmlDoAcceptsInline RendersWmlDoAcceptsInline RendersWmlDoAcceptsInline

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.

RendersWmlSelectsAsMenuCards RendersWmlSelectsAsMenuCards RendersWmlSelectsAsMenuCards RendersWmlSelectsAsMenuCards

Gets a value that indicates whether the browser renders WML select elements as menu cards, instead of as a combo box.

RequiredMetaTagNameValue RequiredMetaTagNameValue RequiredMetaTagNameValue RequiredMetaTagNameValue

Used internally to produce a meta-tag that is required by some browsers.

RequiresAttributeColonSubstitution RequiresAttributeColonSubstitution RequiresAttributeColonSubstitution RequiresAttributeColonSubstitution

Gets a value that indicates whether the browser requires colons in element attribute values to be replaced with a different character.

RequiresContentTypeMetaTag RequiresContentTypeMetaTag RequiresContentTypeMetaTag RequiresContentTypeMetaTag

Gets a value that indicates whether the browser requires an HTML meta element for which the content-type attribute is specified.

RequiresControlStateInSession RequiresControlStateInSession RequiresControlStateInSession RequiresControlStateInSession

Gets a value that indicates whether the browser requires control state to be maintained in sessions.

RequiresDBCSCharacter RequiresDBCSCharacter RequiresDBCSCharacter RequiresDBCSCharacter

Gets a value that indicates whether the browser requires a double-byte character set.

RequiresHtmlAdaptiveErrorReporting RequiresHtmlAdaptiveErrorReporting RequiresHtmlAdaptiveErrorReporting RequiresHtmlAdaptiveErrorReporting

Gets a value that indicates whether the browser requires nonstandard error messages.

RequiresLeadingPageBreak RequiresLeadingPageBreak RequiresLeadingPageBreak RequiresLeadingPageBreak

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.

RequiresNoBreakInFormatting RequiresNoBreakInFormatting RequiresNoBreakInFormatting RequiresNoBreakInFormatting

Gets a value that indicates whether the browser does not support HTML br elements to format line breaks.

RequiresOutputOptimization RequiresOutputOptimization RequiresOutputOptimization RequiresOutputOptimization

Gets a value that indicates whether the browser requires pages to contain a size-optimized form of markup language tags.

RequiresPhoneNumbersAsPlainText RequiresPhoneNumbersAsPlainText RequiresPhoneNumbersAsPlainText RequiresPhoneNumbersAsPlainText

Gets a value that indicates whether the browser supports telephone dialing based on plain text, or whether it requires special markup.

RequiresSpecialViewStateEncoding RequiresSpecialViewStateEncoding RequiresSpecialViewStateEncoding RequiresSpecialViewStateEncoding

Gets a value that indicates whether the browser requires view-state values to be specially encoded.

RequiresUniqueFilePathSuffix RequiresUniqueFilePathSuffix RequiresUniqueFilePathSuffix RequiresUniqueFilePathSuffix

Gets a value that indicates whether the browser requires unique form-action URLs.

RequiresUniqueHtmlCheckboxNames RequiresUniqueHtmlCheckboxNames RequiresUniqueHtmlCheckboxNames RequiresUniqueHtmlCheckboxNames

Gets a value that indicates whether the browser requires unique name attribute values for multiple HTML input type="checkbox" elements.

RequiresUniqueHtmlInputNames RequiresUniqueHtmlInputNames RequiresUniqueHtmlInputNames RequiresUniqueHtmlInputNames

Gets a value that indicates whether the browser requires unique name attribute values for multiple HTML input elements.

RequiresUrlEncodedPostfieldValues RequiresUrlEncodedPostfieldValues RequiresUrlEncodedPostfieldValues RequiresUrlEncodedPostfieldValues

Gets a value that indicates whether postback data that is sent by the browser will be URL-encoded.

ScreenBitDepth ScreenBitDepth ScreenBitDepth ScreenBitDepth

Gets the depth of the display, in bits per pixel.

ScreenCharactersHeight ScreenCharactersHeight ScreenCharactersHeight ScreenCharactersHeight

Gets the approximate height of the display, in character lines.

ScreenCharactersWidth ScreenCharactersWidth ScreenCharactersWidth ScreenCharactersWidth

Gets the approximate width of the display, in characters.

ScreenPixelsHeight ScreenPixelsHeight ScreenPixelsHeight ScreenPixelsHeight

Gets the approximate height of the display, in pixels.

ScreenPixelsWidth ScreenPixelsWidth ScreenPixelsWidth ScreenPixelsWidth

Gets the approximate width of the display, in pixels.

SupportsAccesskeyAttribute SupportsAccesskeyAttribute SupportsAccesskeyAttribute SupportsAccesskeyAttribute

Gets a value that indicates whether the browser supports the accesskey attribute of HTML a (anchor) and input elements.

SupportsBodyColor SupportsBodyColor SupportsBodyColor SupportsBodyColor

Gets a value that indicates whether the browser supports the bgcolor attribute of the HTML body element.

SupportsBold SupportsBold SupportsBold SupportsBold

Gets a value that indicates whether the browser supports HTML b elements to format bold text.

SupportsCacheControlMetaTag SupportsCacheControlMetaTag SupportsCacheControlMetaTag SupportsCacheControlMetaTag

Gets a value that indicates whether the browser supports the cache-control value for the http-equiv attribute of HTML meta elements.

SupportsCallback SupportsCallback SupportsCallback SupportsCallback

Gets a value that indicates whether the browser supports callback scripts.

SupportsCss SupportsCss SupportsCss SupportsCss

Gets a value that indicates whether the browser supports cascading style sheets (CSS).

SupportsDivAlign SupportsDivAlign SupportsDivAlign SupportsDivAlign

Gets a value that indicates whether the browser supports the align attribute of HTML div elements.

SupportsDivNoWrap SupportsDivNoWrap SupportsDivNoWrap SupportsDivNoWrap

Gets a value that indicates whether the browser supports the nowrap attribute of HTML div elements.

SupportsEmptyStringInCookieValue SupportsEmptyStringInCookieValue SupportsEmptyStringInCookieValue SupportsEmptyStringInCookieValue

Gets a value that indicates whether the browser supports empty strings in cookie values.

SupportsFontColor SupportsFontColor SupportsFontColor SupportsFontColor

Gets a value that indicates whether the browser supports the color attribute of HTML font elements.

SupportsFontName SupportsFontName SupportsFontName SupportsFontName

Gets a value that indicates whether the browser supports the name attribute of HTML font elements.

SupportsFontSize SupportsFontSize SupportsFontSize SupportsFontSize

Gets a value that indicates whether the browser supports the size attribute of HTML font elements.

SupportsImageSubmit SupportsImageSubmit SupportsImageSubmit SupportsImageSubmit

Gets a value that indicates whether the browser supports the use of a custom image in place of a standard form submit button.

SupportsIModeSymbols SupportsIModeSymbols SupportsIModeSymbols SupportsIModeSymbols

Gets a value that indicates whether the browser supports i-mode symbols.

SupportsInputIStyle SupportsInputIStyle SupportsInputIStyle SupportsInputIStyle

Gets a value that indicates whether the browser supports the istyle attribute of HTML input elements.

SupportsInputMode SupportsInputMode SupportsInputMode SupportsInputMode

Gets a value that indicates whether the browser supports the mode attribute of HTML input elements.

SupportsItalic SupportsItalic SupportsItalic SupportsItalic

Gets a value that indicates whether the browser supports HTML i elements to format italic text.

SupportsJPhoneMultiMediaAttributes SupportsJPhoneMultiMediaAttributes SupportsJPhoneMultiMediaAttributes SupportsJPhoneMultiMediaAttributes

Gets a value that indicates whether the browser supports J-Phone multimedia attributes.

SupportsJPhoneSymbols SupportsJPhoneSymbols SupportsJPhoneSymbols SupportsJPhoneSymbols

Gets a value that indicates whether the browser supports J-Phone-specific picture symbols.

SupportsQueryStringInFormAction SupportsQueryStringInFormAction SupportsQueryStringInFormAction SupportsQueryStringInFormAction

Gets a value that indicates whether the browser supports a query string in the action attribute value of HTML form elements.

SupportsRedirectWithCookie SupportsRedirectWithCookie SupportsRedirectWithCookie SupportsRedirectWithCookie

Gets a value that indicates whether the browser supports cookies on redirection.

SupportsSelectMultiple SupportsSelectMultiple SupportsSelectMultiple SupportsSelectMultiple

Gets a value that indicates whether the browser supports the multiple attribute of HTML select elements.

SupportsUncheck SupportsUncheck SupportsUncheck SupportsUncheck

Gets a value that indicates whether clearing a checked HTML input type="checkbox" element is reflected in postback data.

SupportsXmlHttp SupportsXmlHttp SupportsXmlHttp SupportsXmlHttp

Gets a value that indicates whether the browser supports receiving XML over HTTP.

Tables Tables Tables Tables

Gets a value that indicates whether the browser supports HTML table elements.

TagWriter TagWriter TagWriter TagWriter

Used internally to get the type of the object that is used to write tags for the browser.

Type Type Type Type

Gets the name and major (integer) version number of the browser.

UseOptimizedCacheKey UseOptimizedCacheKey UseOptimizedCacheKey UseOptimizedCacheKey

Used internally to get a value that indicates whether to use an optimized cache key.

VBScript VBScript VBScript VBScript

Gets a value that indicates whether the browser supports Visual Basic Scripting edition (VBScript).

Version Version Version Version

Gets the full version number (integer and decimal) of the browser as a string.

W3CDomVersion W3CDomVersion W3CDomVersion W3CDomVersion

Gets the version of the World Wide Web Consortium (W3C) XML Document Object Model (DOM) that the browser supports.

Win16 Win16 Win16 Win16

Gets a value that indicates whether the client is a Win16-based computer.

Win32 Win32 Win32 Win32

Gets a value that indicates whether the client is a Win32-based computer.

Methods

AddBrowser(String) AddBrowser(String) AddBrowser(String) AddBrowser(String)

Used internally to add an entry to the internal collection of browsers for which capabilities are recognized.

CompareFilters(String, String) CompareFilters(String, String) CompareFilters(String, String) CompareFilters(String, String)

Used internally to compare filters.

CreateHtmlTextWriter(TextWriter) CreateHtmlTextWriter(TextWriter) CreateHtmlTextWriter(TextWriter) CreateHtmlTextWriter(TextWriter)

Creates a new instance of the HtmlTextWriter object to use to render markup to the browser.

DisableOptimizedCacheKey() DisableOptimizedCacheKey() DisableOptimizedCacheKey() DisableOptimizedCacheKey()

Used internally to disable use of an optimized cache key.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
EvaluateFilter(String) EvaluateFilter(String) EvaluateFilter(String) EvaluateFilter(String)

Used internally to evaluate a filter.

GetClrVersions() GetClrVersions() GetClrVersions() GetClrVersions()

Gets all versions of the .NET Framework common language runtime (CLR) that are installed on the client.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsBrowser(String) IsBrowser(String) IsBrowser(String) IsBrowser(String)

Gets a value that indicates whether the client browser is the same as the specified browser.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to