BrowserHelpers 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.
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. |