SPUsageIdentityTable.LookupSearchEngine Method

Parses the user-agent string for possible search engines and returns the search query string for the first match.

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

Syntax

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

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

returnValue = instance.LookupSearchEngine(userAgent)
public string LookupSearchEngine(
    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 search engine.

See Also

Reference

SPUsageIdentityTable Class

SPUsageIdentityTable Members

Microsoft.SharePoint.Administration Namespace