Freigeben über


JsonPatch.GetNullableValue<T>(ReadOnlySpan<Byte>) Method

Definition

Gets a nullable primitive value at the specified JSON path.

public T? GetNullableValue<T>(ReadOnlySpan<byte> jsonPath) where T : struct;
member this.GetNullableValue : ReadOnlySpan<byte> -> Nullable<'T (requires 'T : struct)> (requires 'T : struct)
Public Function GetNullableValue(Of T As Structure) (jsonPath As ReadOnlySpan(Of Byte)) As Nullable(Of T)

Type Parameters

T

The struct type if its not null.

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

Returns

Exceptions

If the jsonPath was not found.

If the T is not supported.

Applies to