BrowserHelpers.GetOverriddenBrowser Method
Returns the browser capabilities object for the overridden browser capabilities or for the actual browser if no override has been specified.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetOverriddenBrowser ( _
httpContext As HttpContextBase _
) As HttpBrowserCapabilitiesBase
'Usage
Dim httpContext As HttpContextBase
Dim returnValue As HttpBrowserCapabilitiesBase
returnValue = httpContext.GetOverriddenBrowser()
public static HttpBrowserCapabilitiesBase GetOverriddenBrowser(
this HttpContextBase httpContext
)
[ExtensionAttribute]
public:
static HttpBrowserCapabilitiesBase^ GetOverriddenBrowser(
HttpContextBase^ httpContext
)
static member GetOverriddenBrowser :
httpContext:HttpContextBase -> HttpBrowserCapabilitiesBase
public static function GetOverriddenBrowser(
httpContext : HttpContextBase
) : HttpBrowserCapabilitiesBase
Parameters
- httpContext
Type: System.Web.HttpContextBase
The current context.
Return Value
Type: System.Web.HttpBrowserCapabilitiesBase
The browser capabilities.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpContextBase. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).
Remarks
You can use this value to get properties such as HttpBrowserCapabilitiesBase.IsMobileDevice.