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
- tableName
Type: System.String
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.