Share via


SPDiagnosticsProvider.GetLastSyncUtc method (String, String)

The DateTime of the most recent data written to Usage database in UTC format.

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

Syntax

'Declaration
Public Function GetLastSyncUtc ( _
    tableName As String, _
    machineName As String _
) As DateTime
'Usage
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
)

Parameters

Return value

Type: System.DateTime
Returns DateTime in UTC format corresponding to the most recent data written in the Usage database.

Remarks

If data has not been written to the database before, a time from one week ago will be returned.

See also

Reference

SPDiagnosticsProvider class

SPDiagnosticsProvider members

GetLastSyncUtc overload

Microsoft.SharePoint.Diagnostics namespace