共用方式為


SPUsageManager.LogUsage method

使用狀況資料記錄 ETW (Windows 事件追蹤) 資料流。

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

Syntax

'宣告
Public Function LogUsage ( _
    usageEntry As SPUsageEntry _
) As Boolean
'用途
Dim instance As SPUsageManager
Dim usageEntry As SPUsageEntry
Dim returnValue As Boolean

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

參數

傳回值

Type: System.Boolean
取得Boolean值,也就是 false,如果時發生錯誤寫入流量記錄的使用狀況項目。否則,此值為 true。

請參閱

參照

SPUsageManager class

SPUsageManager members

Microsoft.SharePoint.Administration namespace