JsonPatch.GetDateTimeOffset(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 DateTimeOffset value at the specified JSON path.
public DateTimeOffset GetDateTimeOffset(ReadOnlySpan<byte> jsonPath, System.Buffers.StandardFormat format = default);
member this.GetDateTimeOffset : ReadOnlySpan<byte> * System.Buffers.StandardFormat -> DateTimeOffset
Public Function GetDateTimeOffset (jsonPath As ReadOnlySpan(Of Byte), Optional format As StandardFormat = Nothing) As DateTimeOffset
Parameters
- jsonPath
- ReadOnlySpan<Byte>
The JSON path of the value to get.
- format
- StandardFormat
The format the DateTimeOffset is in.
Returns
Exceptions
If the jsonPath was not found.