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
)
參數
usageEntry
Type: Microsoft.SharePoint.Administration.SPUsageEntry採用正在記錄做為參數的使用情況物件。
傳回值
Type: System.Boolean
取得Boolean值,也就是 false,如果時發生錯誤寫入流量記錄的使用狀況項目。否則,此值為 true。