Export (0) Print
Expand All

HttpBrowserCapabilitiesWrapper Class

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

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

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

public class HttpBrowserCapabilitiesWrapper : HttpBrowserCapabilitiesBase

The HttpBrowserCapabilitiesWrapper type exposes the following members.

  NameDescription
Public methodHttpBrowserCapabilitiesWrapperInitializes a new instance of the HttpBrowserCapabilitiesWrapper class.
Top

  NameDescription
Public propertyActiveXControlsGets a value that indicates whether the browser is capable of supporting ActiveX controls. (Overrides HttpBrowserCapabilitiesBase.ActiveXControls.)
Public propertyAdaptersGets the collection of available control adapters. (Overrides HttpBrowserCapabilitiesBase.Adapters.)
Public propertyAOLGets a value that indicates whether the client is an America Online (AOL) browser. (Overrides HttpBrowserCapabilitiesBase.AOL.)
Public propertyBackgroundSoundsGets a value that indicates whether the browser supports playing background sounds by using the bgsounds HTML element. (Overrides HttpBrowserCapabilitiesBase.BackgroundSounds.)
Public propertyBetaGets a value that indicates whether the browser is a beta version. (Overrides HttpBrowserCapabilitiesBase.Beta.)
Public propertyBrowserGets the browser string (if any) that was sent by the browser in the User-Agent request header. (Overrides HttpBrowserCapabilitiesBase.Browser.)
Public propertyBrowsersGets a collection of browsers for which capabilities are recognized. (Overrides HttpBrowserCapabilitiesBase.Browsers.)
Public propertyCanCombineFormsInDeckGets a value that indicates whether the browser supports decks that contain multiple forms, such as separate cards. (Overrides HttpBrowserCapabilitiesBase.CanCombineFormsInDeck.)
Public propertyCanInitiateVoiceCallGets a value that indicates whether the browser device is capable of initiating a voice call. (Overrides HttpBrowserCapabilitiesBase.CanInitiateVoiceCall.)
Public propertyCanRenderAfterInputOrSelectElementGets a value that indicates whether the browser supports page content that follows WML select or input elements. (Overrides HttpBrowserCapabilitiesBase.CanRenderAfterInputOrSelectElement.)
Public propertyCanRenderEmptySelectsGets a value that indicates whether the browser supports empty HTML select elements. (Overrides HttpBrowserCapabilitiesBase.CanRenderEmptySelects.)
Public propertyCanRenderInputAndSelectElementsTogetherGets a value that indicates whether the browser supports WML input and select elements together in the same card. (Overrides HttpBrowserCapabilitiesBase.CanRenderInputAndSelectElementsTogether.)
Public propertyCanRenderMixedSelectsGets a value that indicates whether the browser supports WML option elements that specify both onpick and value attributes. (Overrides HttpBrowserCapabilitiesBase.CanRenderMixedSelects.)
Public propertyCanRenderOneventAndPrevElementsTogetherGets a value that indicates whether the browser supports WML onevent and prev elements in the same card. (Overrides HttpBrowserCapabilitiesBase.CanRenderOneventAndPrevElementsTogether.)
Public propertyCanRenderPostBackCardsGets a value that indicates whether the browser supports WML cards for postback. (Overrides HttpBrowserCapabilitiesBase.CanRenderPostBackCards.)
Public propertyCanRenderSetvarZeroWithMultiSelectionListGets a value that indicates whether the browser supports WML setvar elements that have a value attribute of 0. (Overrides HttpBrowserCapabilitiesBase.CanRenderSetvarZeroWithMultiSelectionList.)
Public propertyCanSendMailGets a value that indicates whether the browser supports sending e-mail messages by using the HTML mailto scheme. (Overrides HttpBrowserCapabilitiesBase.CanSendMail.)
Public propertyCapabilitiesUsed internally to get the defined capabilities of the browser. (Overrides HttpBrowserCapabilitiesBase.Capabilities.)
Public propertyCDFGets a value that indicates whether the browser supports Channel Definition Format (CDF) for webcasting. (Overrides HttpBrowserCapabilitiesBase.CDF.)
Public propertyClrVersionGets the version of the .NET Framework that is installed on the client. (Overrides HttpBrowserCapabilitiesBase.ClrVersion.)
Public propertyCookiesGets a value that indicates whether the browser is capable of supporting cookies. (Overrides HttpBrowserCapabilitiesBase.Cookies.)
Public propertyCrawlerGets a value that indicates whether the browser is a search-engine Web crawler. (Overrides HttpBrowserCapabilitiesBase.Crawler.)
Public propertyDefaultSubmitButtonLimitGets the maximum number of submit buttons that are allowed for a form. (Overrides HttpBrowserCapabilitiesBase.DefaultSubmitButtonLimit.)
Public propertyEcmaScriptVersionGets the version number of ECMAScript (JavaScript) that the browser supports. (Overrides HttpBrowserCapabilitiesBase.EcmaScriptVersion.)
Public propertyFramesGets a value that indicates whether the browser supports HTML frames. (Overrides HttpBrowserCapabilitiesBase.Frames.)
Public propertyGatewayMajorVersionGets the major version number of the wireless gateway that is used to access the server, if known. (Overrides HttpBrowserCapabilitiesBase.GatewayMajorVersion.)
Public propertyGatewayMinorVersionGets the minor version number of the wireless gateway that is used to access the server, if known. (Overrides HttpBrowserCapabilitiesBase.GatewayMinorVersion.)
Public propertyGatewayVersionGets the version of the wireless gateway that is used to access the server, if known. (Overrides HttpBrowserCapabilitiesBase.GatewayVersion.)
Public propertyHasBackButtonGets a value that indicates whether the browser has a dedicated Back button. (Overrides HttpBrowserCapabilitiesBase.HasBackButton.)
Public propertyHidesRightAlignedMultiselectScrollbarsGets 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. (Overrides HttpBrowserCapabilitiesBase.HidesRightAlignedMultiselectScrollbars.)
Public propertyHtmlTextWriterGets or sets the fully qualified class name of the HtmlTextWriter to use for writing markup characters and text. (Overrides HttpBrowserCapabilitiesBase.HtmlTextWriter.)
Public propertyIdGets the internal identifier of the browser as specified in the browser definition file. (Overrides HttpBrowserCapabilitiesBase.Id.)
Public propertyInputTypeGets the type of input that is supported by the browser. (Overrides HttpBrowserCapabilitiesBase.InputType.)
Public propertyIsColorGets a value that indicates whether the browser has a color display. (Overrides HttpBrowserCapabilitiesBase.IsColor.)
Public propertyIsMobileDeviceGets a value that indicates whether the browser is a recognized mobile device. (Overrides HttpBrowserCapabilitiesBase.IsMobileDevice.)
Public propertyItemGets the value of the specified browser capability. In C#, this property is the indexer for the class. (Overrides HttpBrowserCapabilitiesBase.Item[String].)
Public propertyJavaAppletsGets a value that indicates whether the browser supports Java. (Overrides HttpBrowserCapabilitiesBase.JavaApplets.)
Public propertyJScriptVersionGets the JScript version that the browser supports. (Overrides HttpBrowserCapabilitiesBase.JScriptVersion.)
Public propertyMajorVersionGets the major (integer) version number of the browser. (Overrides HttpBrowserCapabilitiesBase.MajorVersion.)
Public propertyMaximumHrefLengthGets the maximum length in characters for the href attribute of an HTML a (anchor) element. (Overrides HttpBrowserCapabilitiesBase.MaximumHrefLength.)
Public propertyMaximumRenderedPageSizeGets the maximum length of the page, in bytes, that the browser can display. (Overrides HttpBrowserCapabilitiesBase.MaximumRenderedPageSize.)
Public propertyMaximumSoftkeyLabelLengthGets the maximum length of the text that a soft-key label can display. (Overrides HttpBrowserCapabilitiesBase.MaximumSoftkeyLabelLength.)
Public propertyMinorVersionGets the minor (decimal) version number of the browser. (Overrides HttpBrowserCapabilitiesBase.MinorVersion.)
Public propertyMinorVersionStringGets the minor (decimal) version number of the browser as a string. (Overrides HttpBrowserCapabilitiesBase.MinorVersionString.)
Public propertyMobileDeviceManufacturerGets the name of the manufacturer of a mobile device, if known. (Overrides HttpBrowserCapabilitiesBase.MobileDeviceManufacturer.)
Public propertyMobileDeviceModelGets the model name of a mobile device, if known. (Overrides HttpBrowserCapabilitiesBase.MobileDeviceModel.)
Public propertyMSDomVersionGets the version of the Microsoft HTML (MSHTML) Document Object Model (DOM) that the browser supports. (Overrides HttpBrowserCapabilitiesBase.MSDomVersion.)
Public propertyNumberOfSoftkeysGets the number of softkeys on a mobile device. (Overrides HttpBrowserCapabilitiesBase.NumberOfSoftkeys.)
Public propertyPlatformGets the name of the operating system that the client is using, if known. (Overrides HttpBrowserCapabilitiesBase.Platform.)
Public propertyPreferredImageMimeGets the MIME type of the type of image content that the browser typically prefers. (Overrides HttpBrowserCapabilitiesBase.PreferredImageMime.)
Public propertyPreferredRenderingMimeGets the MIME type of the type of content that the browser typically prefers. (Overrides HttpBrowserCapabilitiesBase.PreferredRenderingMime.)
Public propertyPreferredRenderingTypeGets the general name for the type of content that the browser prefers. (Overrides HttpBrowserCapabilitiesBase.PreferredRenderingType.)
Public propertyPreferredRequestEncodingGets the request encoding that the browser prefers. (Overrides HttpBrowserCapabilitiesBase.PreferredRequestEncoding.)
Public propertyPreferredResponseEncodingGets the response encoding that the browser prefers. (Overrides HttpBrowserCapabilitiesBase.PreferredResponseEncoding.)
Public propertyRendersBreakBeforeWmlSelectAndInputGets a value that indicates whether the browser renders a line break before select or input elements. (Overrides HttpBrowserCapabilitiesBase.RendersBreakBeforeWmlSelectAndInput.)
Public propertyRendersBreaksAfterHtmlListsGets a value that indicates whether the browser renders a line break after list-item elements. (Overrides HttpBrowserCapabilitiesBase.RendersBreaksAfterHtmlLists.)
Public propertyRendersBreaksAfterWmlAnchorGets a value that indicates whether the browser renders a line break after a standalone WML a (anchor) element. (Overrides HttpBrowserCapabilitiesBase.RendersBreaksAfterWmlAnchor.)
Public propertyRendersBreaksAfterWmlInputGets a value that indicates whether the browser renders a line break after a WML input element. (Overrides HttpBrowserCapabilitiesBase.RendersBreaksAfterWmlInput.)
Public propertyRendersWmlDoAcceptsInlineGets 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. (Overrides HttpBrowserCapabilitiesBase.RendersWmlDoAcceptsInline.)
Public propertyRendersWmlSelectsAsMenuCardsGets a value that indicates whether the browser renders WML select elements as menu cards, instead of as a combo box. (Overrides HttpBrowserCapabilitiesBase.RendersWmlSelectsAsMenuCards.)
Public propertyRequiredMetaTagNameValueUsed internally to produce a meta-tag that is required by some browsers. (Overrides HttpBrowserCapabilitiesBase.RequiredMetaTagNameValue.)
Public propertyRequiresAttributeColonSubstitutionGets a value that indicates whether the browser requires colons in element attribute values to be replaced with a different character. (Overrides HttpBrowserCapabilitiesBase.RequiresAttributeColonSubstitution.)
Public propertyRequiresContentTypeMetaTagGets a value that indicates whether the browser requires an HTML meta element for which the content-type attribute is specified. (Overrides HttpBrowserCapabilitiesBase.RequiresContentTypeMetaTag.)
Public propertyRequiresControlStateInSessionGets a value that indicates whether the browser requires control state to be maintained in sessions. (Overrides HttpBrowserCapabilitiesBase.RequiresControlStateInSession.)
Public propertyRequiresDBCSCharacterGets a value that indicates whether the browser requires a double-byte character set. (Overrides HttpBrowserCapabilitiesBase.RequiresDBCSCharacter.)
Public propertyRequiresHtmlAdaptiveErrorReportingGets a value that indicates whether the browser requires nonstandard error messages. (Overrides HttpBrowserCapabilitiesBase.RequiresHtmlAdaptiveErrorReporting.)
Public propertyRequiresLeadingPageBreakGets a value that indicates whether the browser requires the first element in the body of a Web page to be an HTML br element. (Overrides HttpBrowserCapabilitiesBase.RequiresLeadingPageBreak.)
Public propertyRequiresNoBreakInFormattingGets a value that indicates whether the browser does not support HTML br elements to format line breaks. (Overrides HttpBrowserCapabilitiesBase.RequiresNoBreakInFormatting.)
Public propertyRequiresOutputOptimizationGets a value that indicates whether the browser requires pages to contain a size-optimized form of markup language tags. (Overrides HttpBrowserCapabilitiesBase.RequiresOutputOptimization.)
Public propertyRequiresPhoneNumbersAsPlainTextGets a value that indicates whether the browser supports telephone dialing based on plain text, or whether it requires special markup. (Overrides HttpBrowserCapabilitiesBase.RequiresPhoneNumbersAsPlainText.)
Public propertyRequiresSpecialViewStateEncodingGets a value that indicates whether the browser requires view-state values to be specially encoded. (Overrides HttpBrowserCapabilitiesBase.RequiresSpecialViewStateEncoding.)
Public propertyRequiresUniqueFilePathSuffixGets a value that indicates whether the browser requires unique form-action URLs. (Overrides HttpBrowserCapabilitiesBase.RequiresUniqueFilePathSuffix.)
Public propertyRequiresUniqueHtmlCheckboxNamesGets a value that indicates whether the browser requires unique name attribute values for multiple HTML input type="checkbox" elements. (Overrides HttpBrowserCapabilitiesBase.RequiresUniqueHtmlCheckboxNames.)
Public propertyRequiresUniqueHtmlInputNamesGets a value that indicates whether the browser requires unique name attribute values for multiple HTML input elements. (Overrides HttpBrowserCapabilitiesBase.RequiresUniqueHtmlInputNames.)
Public propertyRequiresUrlEncodedPostfieldValuesGets a value that indicates whether postback data that is sent by the browser will be URL-encoded. (Overrides HttpBrowserCapabilitiesBase.RequiresUrlEncodedPostfieldValues.)
Public propertyScreenBitDepthGets the depth of the display, in bits per pixel. (Overrides HttpBrowserCapabilitiesBase.ScreenBitDepth.)
Public propertyScreenCharactersHeightGets the approximate height of the display, in character lines. (Overrides HttpBrowserCapabilitiesBase.ScreenCharactersHeight.)
Public propertyScreenCharactersWidthGets the approximate width of the display, in characters. (Overrides HttpBrowserCapabilitiesBase.ScreenCharactersWidth.)
Public propertyScreenPixelsHeightGets the approximate height of the display, in pixels. (Overrides HttpBrowserCapabilitiesBase.ScreenPixelsHeight.)
Public propertyScreenPixelsWidthGets the approximate width of the display, in pixels. (Overrides HttpBrowserCapabilitiesBase.ScreenPixelsWidth.)
Public propertySupportsAccesskeyAttributeGets a value that indicates whether the browser supports the accesskey attribute of HTML a (anchor) and input elements. (Overrides HttpBrowserCapabilitiesBase.SupportsAccesskeyAttribute.)
Public propertySupportsBodyColorGets a value that indicates whether the browser supports the bgcolor attribute of the HTML body element. (Overrides HttpBrowserCapabilitiesBase.SupportsBodyColor.)
Public propertySupportsBoldGets a value that indicates whether the browser supports HTML b elements to format bold text. (Overrides HttpBrowserCapabilitiesBase.SupportsBold.)
Public propertySupportsCacheControlMetaTagGets a value that indicates whether the browser supports the cache-control value for the http-equiv attribute of HTML meta elements. (Overrides HttpBrowserCapabilitiesBase.SupportsCacheControlMetaTag.)
Public propertySupportsCallbackGets a value that indicates whether the browser supports callback scripts. (Overrides HttpBrowserCapabilitiesBase.SupportsCallback.)
Public propertySupportsCssGets a value that indicates whether the browser supports cascading style sheets (CSS). (Overrides HttpBrowserCapabilitiesBase.SupportsCss.)
Public propertySupportsDivAlignGets a value that indicates whether the browser supports the align attribute of HTML div elements. (Overrides HttpBrowserCapabilitiesBase.SupportsDivAlign.)
Public propertySupportsDivNoWrapGets a value that indicates whether the browser supports the nowrap attribute of HTML div elements. (Overrides HttpBrowserCapabilitiesBase.SupportsDivNoWrap.)
Public propertySupportsEmptyStringInCookieValueGets a value that indicates whether the browser supports empty strings in cookie values. (Overrides HttpBrowserCapabilitiesBase.SupportsEmptyStringInCookieValue.)
Public propertySupportsFontColorGets a value that indicates whether the browser supports the color attribute of HTML font elements. (Overrides HttpBrowserCapabilitiesBase.SupportsFontColor.)
Public propertySupportsFontNameGets a value that indicates whether the browser supports the name attribute of HTML font elements. (Overrides HttpBrowserCapabilitiesBase.SupportsFontName.)
Public propertySupportsFontSizeGets a value that indicates whether the browser supports the size attribute of HTML font elements. (Overrides HttpBrowserCapabilitiesBase.SupportsFontSize.)
Public propertySupportsImageSubmitGets a value that indicates whether the browser supports the use of a custom image in place of a standard form submit button. (Overrides HttpBrowserCapabilitiesBase.SupportsImageSubmit.)
Public propertySupportsIModeSymbolsGets a value that indicates whether the browser supports i-mode symbols. (Overrides HttpBrowserCapabilitiesBase.SupportsIModeSymbols.)
Public propertySupportsInputIStyleGets a value that indicates whether the browser supports the istyle attribute of HTML input elements. (Overrides HttpBrowserCapabilitiesBase.SupportsInputIStyle.)
Public propertySupportsInputModeGets a value that indicates whether the browser supports the mode attribute of HTML input elements. (Overrides HttpBrowserCapabilitiesBase.SupportsInputMode.)
Public propertySupportsItalicGets a value that indicates whether the browser supports HTML i elements to format italic text. (Overrides HttpBrowserCapabilitiesBase.SupportsItalic.)
Public propertySupportsJPhoneMultiMediaAttributesGets a value that indicates whether the browser supports J-Phone multimedia attributes. (Overrides HttpBrowserCapabilitiesBase.SupportsJPhoneMultiMediaAttributes.)
Public propertySupportsJPhoneSymbolsGets a value that indicates whether the browser supports J-Phone–specific picture symbols. (Overrides HttpBrowserCapabilitiesBase.SupportsJPhoneSymbols.)
Public propertySupportsQueryStringInFormActionGets a value that indicates whether the browser supports a query string in the action attribute value of HTML form elements. (Overrides HttpBrowserCapabilitiesBase.SupportsQueryStringInFormAction.)
Public propertySupportsRedirectWithCookieGets a value that indicates whether the browser supports cookies on redirection. (Overrides HttpBrowserCapabilitiesBase.SupportsRedirectWithCookie.)
Public propertySupportsSelectMultipleGets a value that indicates whether the browser supports the multiple attribute of HTML select elements. (Overrides HttpBrowserCapabilitiesBase.SupportsSelectMultiple.)
Public propertySupportsUncheckGets a value that indicates whether clearing a checked HTML input type="checkbox" element is reflected in postback data. (Overrides HttpBrowserCapabilitiesBase.SupportsUncheck.)
Public propertySupportsXmlHttpGets a value that indicates whether the browser supports receiving XML over HTTP. (Overrides HttpBrowserCapabilitiesBase.SupportsXmlHttp.)
Public propertyTablesGets a value that indicates whether the browser supports HTML table elements. (Overrides HttpBrowserCapabilitiesBase.Tables.)
Public propertyTagWriterUsed internally to get the type of the object that is used to write tags for the browser. (Overrides HttpBrowserCapabilitiesBase.TagWriter.)
Public propertyTypeGets the name and major (integer) version number of the browser. (Overrides HttpBrowserCapabilitiesBase.Type.)
Public propertyUseOptimizedCacheKeyUsed internally to get a value that indicates whether to use an optimized cache key. (Overrides HttpBrowserCapabilitiesBase.UseOptimizedCacheKey.)
Public propertyVBScriptGets a value that indicates whether the browser supports Visual Basic Scripting edition (VBScript). (Overrides HttpBrowserCapabilitiesBase.VBScript.)
Public propertyVersionGets the full version number (integer and decimal) of the browser as a string. (Overrides HttpBrowserCapabilitiesBase.Version.)
Public propertyW3CDomVersionGets the version of the World Wide Web Consortium (W3C) XML Document Object Model (DOM) that the browser supports. (Overrides HttpBrowserCapabilitiesBase.W3CDomVersion.)
Public propertyWin16Gets a value that indicates whether the client is a Win16-based computer. (Overrides HttpBrowserCapabilitiesBase.Win16.)
Public propertyWin32Gets a value that indicates whether the client is a Win32-based computer. (Overrides HttpBrowserCapabilitiesBase.Win32.)
Top

  NameDescription
Public methodAddBrowserUsed internally to add an entry to the internal collection of browsers for which capabilities are recognized. (Overrides HttpBrowserCapabilitiesBase.AddBrowser(String).)
Public methodCompareFiltersUsed internally to compare filters. (Overrides HttpBrowserCapabilitiesBase.CompareFilters(String, String).)
Public methodCreateHtmlTextWriterCreates a new instance of the HtmlTextWriter object to use to render markup to the browser. (Overrides HttpBrowserCapabilitiesBase.CreateHtmlTextWriter(TextWriter).)
Public methodDisableOptimizedCacheKeyUsed internally to disable use of an optimized cache key. (Overrides HttpBrowserCapabilitiesBase.DisableOptimizedCacheKey().)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodEvaluateFilterUsed internally to evaluate a filter. (Overrides HttpBrowserCapabilitiesBase.EvaluateFilter(String).)
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 methodGetClrVersionsGets all versions of the .NET Framework common language runtime (CLR) that are installed on the client. (Overrides HttpBrowserCapabilitiesBase.GetClrVersions().)
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 methodIsBrowserGets a value that indicates whether the client browser is the same as the specified browser. (Overrides HttpBrowserCapabilitiesBase.IsBrowser(String).)
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 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.

.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