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)
Available in Sandboxed Solutions: No
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
usageEntry
Type: Microsoft.SharePoint.Administration.SPUsageEntryTakes the usage object being logged as a parameter.
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.