SPDiagnosticsProvider.GetLastSyncUtc Method (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)


Public Function GetLastSyncUtc ( _
    machineName As String _
) As DateTime
Dim instance As SPDiagnosticsProvider
Dim machineName As String
Dim returnValue As DateTime

returnValue = instance.GetLastSyncUtc(machineName)
public DateTime GetLastSyncUtc(
    string machineName


Return Value

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


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

See Also


SPDiagnosticsProvider Class

SPDiagnosticsProvider Members

GetLastSyncUtc Overload

Microsoft.SharePoint.Diagnostics Namespace