JsonPatch.GetTimeSpan(ReadOnlySpan<Byte>, StandardFormat) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.