JsonPatch.GetNullableValue<T>(ReadOnlySpan<Byte>) 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 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.