BrowserHelpers Class

Definition

Provides a way to specify custom browser (user agent) information.

public static class BrowserHelpers
type BrowserHelpers = class
Public Module BrowserHelpers
Inheritance
BrowserHelpers

Methods

ClearOverriddenBrowser(HttpContextBase)

Removes any overridden user agent for the current request.

GetOverriddenBrowser(HttpContextBase)

Returns the browser capabilities object for the overridden browser capabilities or for the actual browser if no override has been specified.

GetOverriddenUserAgent(HttpContextBase)

Returns the overridden user agent value or the actual user agent string if no override has been specified.

GetVaryByCustomStringForOverriddenBrowser(HttpContext)

Gets a string that varies based on the type of the browser.

GetVaryByCustomStringForOverriddenBrowser(HttpContextBase)

Gets a string that varies based on the type of the browser.

SetOverriddenBrowser(HttpContextBase, BrowserOverride)

Overrides the request's actual user agent value using the specified browser override information.

SetOverriddenBrowser(HttpContextBase, String)

Overrides the request's actual user agent value using the specified user agent.

Applies to