HttpBrowserCapabilitiesWrapper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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) |
Initializes a new instance of the HttpBrowserCapabilitiesWrapper class. |
Properties
ActiveXControls |
Gets a value that indicates whether the browser is capable of supporting ActiveX controls. |
Adapters |
Gets the collection of available control adapters. |
AOL |
Gets a value that indicates whether the client is an America Online (AOL) browser. |
BackgroundSounds |
Gets a value that indicates whether the browser supports playing background sounds by using the |
Beta |
Gets a value that indicates whether the browser is a beta version. |
Browser |
Gets the browser string (if any) that was sent by the browser in the |
Browsers |
Gets a collection of browsers for which capabilities are recognized. |
CanCombineFormsInDeck |
Gets a value that indicates whether the browser supports decks that contain multiple forms, such as separate cards. |
CanInitiateVoiceCall |
Gets a value that indicates whether the browser device is capable of initiating a voice call. |
CanRenderAfterInputOrSelectElement |
Gets a value that indicates whether the browser supports page content that follows WML |
CanRenderEmptySelects |
Gets a value that indicates whether the browser supports empty HTML |
CanRenderInputAndSelectElementsTogether |
Gets a value that indicates whether the browser supports WML |
CanRenderMixedSelects |
Gets a value that indicates whether the browser supports WML |
CanRenderOneventAndPrevElementsTogether |
Gets a value that indicates whether the browser supports WML |
CanRenderPostBackCards |
Gets a value that indicates whether the browser supports WML cards for postback. |
CanRenderSetvarZeroWithMultiSelectionList |
Gets a value that indicates whether the browser supports WML |
CanSendMail |
Gets a value that indicates whether the browser supports sending email messages by using the HTML |
Capabilities |
Used internally to get the defined capabilities of the browser. |
CDF |
Gets a value that indicates whether the browser supports Channel Definition Format (CDF) for webcasting. |
ClrVersion |
Gets the version of the .NET Framework that is installed on the client. |
Cookies |
Gets a value that indicates whether the browser is capable of supporting cookies. |
Crawler |
Gets a value that indicates whether the browser is a search-engine Web crawler. |
DefaultSubmitButtonLimit |
Gets the maximum number of submit buttons that are allowed for a form. |
EcmaScriptVersion |
Gets the version number of ECMAScript (JavaScript) that the browser supports. |
Frames |
Gets a value that indicates whether the browser supports HTML frames. |
GatewayMajorVersion |
Gets the major version number of the wireless gateway that is used to access the server, if known. |
GatewayMinorVersion |
Gets the minor version number of the wireless gateway that is used to access the server, if known. |
GatewayVersion |
Gets the version of the wireless gateway that is used to access the server, if known. |
HasBackButton |
Gets a value that indicates whether the browser has a dedicated Back button. |
HidesRightAlignedMultiselectScrollbars |
Gets a value that indicates whether the scrollbar of an HTML |
HtmlTextWriter |
Gets or sets the fully qualified class name of the HtmlTextWriter to use for writing markup characters and text. |
Id |
Gets the internal identifier of the browser as specified in the browser definition file. |
InputType |
Gets the type of input that is supported by the browser. |
IsColor |
Gets a value that indicates whether the browser has a color display. |
IsMobileDevice |
Gets a value that indicates whether the browser is a recognized mobile device. |
Item[String] |
Gets the value of the specified browser capability. In C#, this property is the indexer for the class. |
JavaApplets |
Gets a value that indicates whether the browser supports Java. |
JScriptVersion |
Gets the JScript version that the browser supports. |
MajorVersion |
Gets the major (integer) version number of the browser. |
MaximumHrefLength |
Gets the maximum length in characters for the |
MaximumRenderedPageSize |
Gets the maximum length of the page, in bytes, that the browser can display. |
MaximumSoftkeyLabelLength |
Gets the maximum length of the text that a soft-key label can display. |
MinorVersion |
Gets the minor (decimal) version number of the browser. |
MinorVersionString |
Gets the minor (decimal) version number of the browser as a string. |
MobileDeviceManufacturer |
Gets the name of the manufacturer of a mobile device, if known. |
MobileDeviceModel |
Gets the model name of a mobile device, if known. |
MSDomVersion |
Gets the version of the Microsoft HTML (MSHTML) Document Object Model (DOM) that the browser supports. |
NumberOfSoftkeys |
Gets the number of softkeys on a mobile device. |
Platform |
Gets the name of the operating system that the client is using, if known. |
PreferredImageMime |
Gets the MIME type of the type of image content that the browser typically prefers. |
PreferredRenderingMime |
Gets the MIME type of the type of content that the browser typically prefers. |
PreferredRenderingType |
Gets the general name for the type of content that the browser prefers. |
PreferredRequestEncoding |
Gets the request encoding that the browser prefers. |
PreferredResponseEncoding |
Gets the response encoding that the browser prefers. |
RendersBreakBeforeWmlSelectAndInput |
Gets a value that indicates whether the browser renders a line break before |
RendersBreaksAfterHtmlLists |
Gets a value that indicates whether the browser renders a line break after list-item elements. |
RendersBreaksAfterWmlAnchor |
Gets a value that indicates whether the browser renders a line break after a standalone WML |
RendersBreaksAfterWmlInput |
Gets a value that indicates whether the browser renders a line break after a WML |
RendersWmlDoAcceptsInline |
Gets a value that indicates whether the mobile-device browser renders a WML |
RendersWmlSelectsAsMenuCards |
Gets a value that indicates whether the browser renders WML |
RequiredMetaTagNameValue |
Used internally to produce a meta-tag that is required by some browsers. |
RequiresAttributeColonSubstitution |
Gets a value that indicates whether the browser requires colons in element attribute values to be replaced with a different character. |
RequiresContentTypeMetaTag |
Gets a value that indicates whether the browser requires an HTML |
RequiresControlStateInSession |
Gets a value that indicates whether the browser requires control state to be maintained in sessions. |
RequiresDBCSCharacter |
Gets a value that indicates whether the browser requires a double-byte character set. |
RequiresHtmlAdaptiveErrorReporting |
Gets a value that indicates whether the browser requires nonstandard error messages. |
RequiresLeadingPageBreak |
Gets a value that indicates whether the browser requires the first element in the body of a Web page to be an HTML |
RequiresNoBreakInFormatting |
Gets a value that indicates whether the browser does not support HTML |
RequiresOutputOptimization |
Gets a value that indicates whether the browser requires pages to contain a size-optimized form of markup language tags. |
RequiresPhoneNumbersAsPlainText |
Gets a value that indicates whether the browser supports telephone dialing based on plain text, or whether it requires special markup. |
RequiresSpecialViewStateEncoding |
Gets a value that indicates whether the browser requires view-state values to be specially encoded. |
RequiresUniqueFilePathSuffix |
Gets a value that indicates whether the browser requires unique form-action URLs. |
RequiresUniqueHtmlCheckboxNames |
Gets a value that indicates whether the browser requires unique |
RequiresUniqueHtmlInputNames |
Gets a value that indicates whether the browser requires unique |
RequiresUrlEncodedPostfieldValues |
Gets a value that indicates whether postback data that is sent by the browser will be URL-encoded. |
ScreenBitDepth |
Gets the depth of the display, in bits per pixel. |
ScreenCharactersHeight |
Gets the approximate height of the display, in character lines. |
ScreenCharactersWidth |
Gets the approximate width of the display, in characters. |
ScreenPixelsHeight |
Gets the approximate height of the display, in pixels. |
ScreenPixelsWidth |
Gets the approximate width of the display, in pixels. |
SupportsAccesskeyAttribute |
Gets a value that indicates whether the browser supports the |
SupportsBodyColor |
Gets a value that indicates whether the browser supports the |
SupportsBold |
Gets a value that indicates whether the browser supports HTML |
SupportsCacheControlMetaTag |
Gets a value that indicates whether the browser supports the |
SupportsCallback |
Gets a value that indicates whether the browser supports callback scripts. |
SupportsCss |
Gets a value that indicates whether the browser supports cascading style sheets (CSS). |
SupportsDivAlign |
Gets a value that indicates whether the browser supports the |
SupportsDivNoWrap |
Gets a value that indicates whether the browser supports the |
SupportsEmptyStringInCookieValue |
Gets a value that indicates whether the browser supports empty strings in cookie values. |
SupportsFontColor |
Gets a value that indicates whether the browser supports the |
SupportsFontName |
Gets a value that indicates whether the browser supports the |
SupportsFontSize |
Gets a value that indicates whether the browser supports the |
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 |
Gets a value that indicates whether the browser supports i-mode symbols. |
SupportsInputIStyle |
Gets a value that indicates whether the browser supports the |
SupportsInputMode |
Gets a value that indicates whether the browser supports the |
SupportsItalic |
Gets a value that indicates whether the browser supports HTML |
SupportsJPhoneMultiMediaAttributes |
Gets a value that indicates whether the browser supports J-Phone multimedia attributes. |
SupportsJPhoneSymbols |
Gets a value that indicates whether the browser supports J-Phone-specific picture symbols. |
SupportsQueryStringInFormAction |
Gets a value that indicates whether the browser supports a query string in the |
SupportsRedirectWithCookie |
Gets a value that indicates whether the browser supports cookies on redirection. |
SupportsSelectMultiple |
Gets a value that indicates whether the browser supports the |
SupportsUncheck |
Gets a value that indicates whether clearing a checked HTML |
SupportsXmlHttp |
Gets a value that indicates whether the browser supports receiving XML over HTTP. |
Tables |
Gets a value that indicates whether the browser supports HTML |
TagWriter |
Used internally to get the type of the object that is used to write tags for the browser. |
Type |
Gets the name and major (integer) version number of the browser. |
UseOptimizedCacheKey |
Used internally to get a value that indicates whether to use an optimized cache key. |
VBScript |
Gets a value that indicates whether the browser supports Visual Basic Scripting edition (VBScript). |
Version |
Gets the full version number (integer and decimal) of the browser as a string. |
W3CDomVersion |
Gets the version of the World Wide Web Consortium (W3C) XML Document Object Model (DOM) that the browser supports. |
Win16 |
Gets a value that indicates whether the client is a Win16-based computer. |
Win32 |
Gets a value that indicates whether the client is a Win32-based computer. |
Methods
AddBrowser(String) |
Used internally to add an entry to the internal collection of browsers for which capabilities are recognized. |
CompareFilters(String, String) |
Used internally to compare filters. |
CreateHtmlTextWriter(TextWriter) |
Creates a new instance of the HtmlTextWriter object to use to render markup to the browser. |
DisableOptimizedCacheKey() |
Used internally to disable use of an optimized cache key. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
EvaluateFilter(String) |
Used internally to evaluate a filter. |
GetClrVersions() |
Gets all versions of the .NET Framework common language runtime (CLR) that are installed on the client. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
IsBrowser(String) |
Gets a value that indicates whether the client browser is the same as the specified browser. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Applies to
.NET