Click or drag to resize

BrowserInfo Class

Holds information about the browser.
Inheritance Hierarchy
SystemObject
  NetQuarryBrowserInfo

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[SerializableAttribute]
public class BrowserInfo

The BrowserInfo type exposes the following members.

Constructors
  NameDescription
Public methodBrowserInfo(HttpRequest) Obsolete.
Simple constructor. Should almost never be used.
Public methodBrowserInfo(IAppContext, HttpRequest)
Standard constructor.
Top
Properties
  NameDescription
Public propertyDeviceClassAbbrev
Gets the abbreviation for the DeviceClass obtained from GetDeviceClass. The primary purpose for the abbreviation is for unique caching by device class.
Public propertyDisplayName
Returns the name of the browser including the version and OS.
Public propertyEngine
Returns the BrowserEngine.
Public propertyIsMobile
Returns true if the browser is a mobile browser (including iPhone).
Public propertyIsMobileApp
Returns true if the brower is a browser within a Mobile Application. This can be set by sending a custom header "x-nq-mobileapp" with the initial request.
Public propertyIsTablet
Returns true if the browser is a table browser (e.g. iPad). Also recognizes Android as a tablet browser when browser not reporting itself in Mobile mode.
Public propertyPlatformType
Returns the BrowserPlatformType.
Public propertySupportLevel
Returns the BrowserSupport level of the current browser.
Public propertySupportsJavaScript
Returns true if the browser supports JavaScript.
Public propertyType
Returns the BrowserType.
Public propertyUserAgent
Returns the UserAgent string as reported by the browser.
Public propertyUsesAltForTooltip
Older browsers (specifically IE pre-version 8) use an HTML element's ALT attribute for a tooltip if that element does not have a TITLE attribute.
Public propertyVerMajor
Returns the major version number of the browser.
Public propertyVerMinor
Returns the minor version number of the browser.
Public propertyVersion
Returns the version number of the browser as a double.
Top
Methods
  NameDescription
Public methodDetermineSupportLevel
Determines the BrowserSupport level of the current browser.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodForceDeviceClass
Override the class's standard device determination DeviceClass logic and force the application to render for the specified DeviceClass. A call to this method will override the internal logic used in IsMobile, IsTablet, and GetDeviceClass to use the specified setting. You can clear the override and restore standard device determination by passing zero as the deviceClass.

It is strongly recommended that this method be called only at application startup (presumably in a startup application extension) and that the DeviceClass not be changed later in the session life-cycle. Changing the DeviceClass later in the session life-cycle could have various side effects such as links becoming invalid (e.g. link is rendered for Computer on one request, but when the link is clicked the link is invalid because the DeviceClass has been changed to Mobile which is typically more restrictive). If changing the DeviceClass later in the session is required, it is strongly recommended that a full page refresh be performed.

Public methodGetDeviceClass
Gets the DeviceClass of the browser's physical device. Note that the device class is automatically detected, but can be force to a different value via ForceDeviceClass(DeviceClass).
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupports
Determines if the browser is supports the specified capability. The determination is based on the browser type and version.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also