JsonReader.ReadTimeSpan method

Reads a TimeSpan interval from the JSON token.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Function ReadTimeSpan As TimeSpan
'Usage
Dim instance As JsonReader
Dim returnValue As TimeSpan

returnValue = instance.ReadTimeSpan()
public TimeSpan ReadTimeSpan()

Return value

Type: System.TimeSpan
The time span.

Exceptions

Exception Condition
InvalidOperationException

The JSON token is not a string type.

See also

Reference

JsonReader class

JsonReader members

Microsoft.SharePoint.Client namespace