Share via


BrowserHelpers.GetVaryByCustomStringForOverriddenBrowser Method (HttpContextBase)

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

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetVaryByCustomStringForOverriddenBrowser ( _
    httpContext As HttpContextBase _
) As String
'Usage
Dim httpContext As HttpContextBase 
Dim returnValue As String 

returnValue = httpContext.GetVaryByCustomStringForOverriddenBrowser()
public static string GetVaryByCustomStringForOverriddenBrowser(
    this HttpContextBase httpContext
)
[ExtensionAttribute]
public:
static String^ GetVaryByCustomStringForOverriddenBrowser(
    HttpContextBase^ httpContext
)
static member GetVaryByCustomStringForOverriddenBrowser : 
        httpContext:HttpContextBase -> string
public static function GetVaryByCustomStringForOverriddenBrowser(
    httpContext : HttpContextBase
) : String

Parameters

Return Value

Type: System.String
A string that identifies the browser.

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 do not call this method directly. It is called by the BrowserHelpers.GetVaryByCustomStringForOverriddenBrowser(HttpContext) method.

See Also

Reference

BrowserHelpers Class

GetVaryByCustomStringForOverriddenBrowser Overload

System.Web.WebPages Namespace