Freigeben über


JsonPatch.GetTimeSpan(ReadOnlySpan<Byte>, StandardFormat) Method

Definition

Gets a TimeSpan value at the specified JSON path.

public TimeSpan GetTimeSpan(ReadOnlySpan<byte> jsonPath, System.Buffers.StandardFormat format = default);
member this.GetTimeSpan : ReadOnlySpan<byte> * System.Buffers.StandardFormat -> TimeSpan
Public Function GetTimeSpan (jsonPath As ReadOnlySpan(Of Byte), Optional format As StandardFormat = Nothing) As TimeSpan

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

format
StandardFormat

The format the TimeSpan is in.

Returns

Exceptions

If the jsonPath was not found.

Applies to