Share via


BrowserHelpers.ClearOverriddenBrowser Method

Removes any overridden user agent for the current request.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub ClearOverriddenBrowser ( _
    httpContext As HttpContextBase _
)
'Usage
Dim httpContext As HttpContextBase 

httpContext.ClearOverriddenBrowser()
public static void ClearOverriddenBrowser(
    this HttpContextBase httpContext
)
[ExtensionAttribute]
public:
static void ClearOverriddenBrowser(
    HttpContextBase^ httpContext
)
static member ClearOverriddenBrowser : 
        httpContext:HttpContextBase -> unit
public static function ClearOverriddenBrowser(
    httpContext : HttpContextBase
)

Parameters

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

See Also

Reference

BrowserHelpers Class

System.Web.WebPages Namespace