Click or drag to resize

BrowserInfo Methods

The BrowserInfo type exposes the following members.

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