Freigeben über


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

Definition

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.

Applies to