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