Partilhar 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)
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

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