Share via


SPUsageManager.LogUsage method

Logs the usage data to the ETW (Event Tracing for Windows) stream.

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

Syntax

'Declaration
Public Function LogUsage ( _
    usageEntry As SPUsageEntry _
) As Boolean
'Usage
Dim instance As SPUsageManager
Dim usageEntry As SPUsageEntry
Dim returnValue As Boolean

returnValue = instance.LogUsage(usageEntry)
public bool LogUsage(
    SPUsageEntry usageEntry
)

Parameters

Return value

Type: System.Boolean
Gets a Boolean value, which is false, if there was an error writing the usage entry to the usage logs. Otherwise, the value is true.

See also

Reference

SPUsageManager class

SPUsageManager members

Microsoft.SharePoint.Administration namespace