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)
Syntax
'Declaration
Public Function GetLastSyncUtc ( _
machineName As String _
) As DateTime
'Usage
Dim instance As SPDiagnosticsProvider
Dim machineName As String
Dim returnValue As DateTime
returnValue = instance.GetLastSyncUtc(machineName)
public DateTime GetLastSyncUtc(
string machineName
)
Parameters
machineName
Type: System.StringName of the machine.
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.