SPUsageIdentityTable.LookupOS Method

Parses the specified user-agent string for possible operating systems and returns the first match, checking main group operating systems before others.

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

Syntax

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

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

returnValue = instance.LookupOS(userAgent)
public string LookupOS(
    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 operating system.

See Also

Reference

SPUsageIdentityTable Class

SPUsageIdentityTable Members

Microsoft.SharePoint.Administration Namespace