SPUsageIdentityTable.LookupBrowser Method

Parses the user-agent string for possible browsers and returns the first match.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

Public Function LookupBrowser ( _
    userAgent As String _
) As String

Dim instance As SPUsageIdentityTable
Dim userAgent As String
Dim returnValue As String

returnValue = instance.LookupBrowser(userAgent)
public string LookupBrowser(
    string userAgent
)

Parameters

  • userAgent
    Type: System.String
    A string that specifies the user agent, for example, "Mozilla/4.0".

Return Value

Type: System.String
A string that identifies the browser. For example, if userAgent equals "MSIE 6.0", then the LookupBrowser method returns "Internet Explorer".

See Also

Reference

SPUsageIdentityTable Class

SPUsageIdentityTable Members

Microsoft.SharePoint.Administration Namespace