SPUtility.IsUplevelBrowser Method

Returns a Boolean value that indicates whether the version of the browser is later than Internet Explorer 5.0 or Netscape Navigator 6.0, based on the HTTP context of the request.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)> _
Public Shared Function IsUplevelBrowser ( _
    context As HttpContext _
) As Boolean
'Usage
Dim context As HttpContext
Dim returnValue As Boolean

returnValue = SPUtility.IsUplevelBrowser(context)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public static bool IsUplevelBrowser(
    HttpContext context
)

Parameters

  • context
    Type: System.Web.HttpContext

    A System.Web.HttpContext object that represents the context of the request.

Return Value

Type: System.Boolean
true if the browser is a later version; otherwise, false.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace