Name
HttpBrowserCapabilities
Synopsis
This class allows you to take advantage of features enabled in the
client’s browser. It is automatically available through the
Browser property of the built-in Request object and corresponds roughly
to the MSWC.BrowserCapabilities component that
existed in ASP.
Essentially, the HttpBrowserCapabilities
class is a list of properties that describe the client’s browser. Many properties return True or False, depending on whether a given capability is
enabled in the browser, such as ActiveXControls, BackgroundSounds, CDF (the channel
definition format used in webcasting), Cookies, Frames, JavaApplets, JavaScript, and VBScript. Other
Boolean values tell you whether or not the browser is AOL-based, a
beta, and running on the Win16 or Win32 platform (the AOL, Beta, Win16, and Win32 properties,
respectively). Additionally, you can retrieve information such as
version number
(MajorVersion and MinorVersion),
the Platform name
(e.g., “Win32”), the browser Type (e.g.,
“Microsoft Internet Explorer 5”), and the full Version number as
a string.
Public Class HttpBrowserCapabilities : Inherits System.Web.Configuration.HttpCapabilitiesBase ' Public Constructors Public Sub New() ' Public Instance Properties Public ReadOnly Property ActiveXControls As Boolean Public ReadOnly Property AOL As Boolean Public ReadOnly Property BackgroundSounds As Boolean Public ReadOnly Property Beta As Boolean Public ReadOnly Property Browser As String Public ReadOnly Property CDF
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access