共用方式為


SPDiagnosticsProvider.GetLastSyncUtc method (String, String)

最新的資料寫入 UTC 格式的使用狀況資料庫DateTime

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

Syntax

'宣告
Public Function GetLastSyncUtc ( _
    tableName As String, _
    machineName As String _
) As DateTime
'用途
Dim instance As SPDiagnosticsProvider
Dim tableName As String
Dim machineName As String
Dim returnValue As DateTime

returnValue = instance.GetLastSyncUtc(tableName, _
    machineName)
public DateTime GetLastSyncUtc(
    string tableName,
    string machineName
)

參數

傳回值

Type: System.DateTime
會傳回DateTime UTC 格式對應至最新的資料寫入使用狀況資料庫中。

備註

如果資料已無法寫入資料庫之前,將會傳回從過去一週的時間。

請參閱

參照

SPDiagnosticsProvider class

SPDiagnosticsProvider members

GetLastSyncUtc overload

Microsoft.SharePoint.Diagnostics namespace