Share via


JsonPatch.TryGetValue Method

Definition

Overloads

Name Description
TryGetValue(ReadOnlySpan<Byte>, TimeSpan, StandardFormat)

Tries to get a TimeSpan value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, DateTimeOffset, StandardFormat)

Tries to get a DateTimeOffset value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, DateTime, StandardFormat)

Tries to get a DateTime value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, UInt64)

Tries to get a UInt64 value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, UInt32)

Tries to get a UInt32 value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, UInt16)

Tries to get a UInt16 value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, String)

Tries to get a string value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Single)

Tries to get a float value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Boolean)

Tries to get a boolean value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Int64)

Tries to get a Int64 value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Int32)

Tries to get a Int32 value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Int16)

Tries to get a Int16 value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Guid)

Tries to get a Guid value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Double)

Tries to get a double value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Decimal)

Tries to get a decimal value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, Byte)

Tries to get a byte value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, SByte)

Tries to get a Int8 value at the specified JSON path.

TryGetValue(ReadOnlySpan<Byte>, TimeSpan, StandardFormat)

Source:
JsonPatch.cs

Tries to get a TimeSpan value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out TimeSpan value, System.Buffers.StandardFormat format = default);
member this.TryGetValue : ReadOnlySpan<byte> * TimeSpan * System.Buffers.StandardFormat -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As TimeSpan, Optional format As StandardFormat = Nothing) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
TimeSpan

The value if found.

format
StandardFormat

The format the TimeSpan is in.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, DateTimeOffset, StandardFormat)

Source:
JsonPatch.cs

Tries to get a DateTimeOffset value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out DateTimeOffset value, System.Buffers.StandardFormat format = default);
member this.TryGetValue : ReadOnlySpan<byte> * DateTimeOffset * System.Buffers.StandardFormat -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As DateTimeOffset, Optional format As StandardFormat = Nothing) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
DateTimeOffset

The value if found.

format
StandardFormat

The format the DateTimeOffset is in.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, DateTime, StandardFormat)

Source:
JsonPatch.cs

Tries to get a DateTime value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out DateTime value, System.Buffers.StandardFormat format = default);
member this.TryGetValue : ReadOnlySpan<byte> * DateTime * System.Buffers.StandardFormat -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As DateTime, Optional format As StandardFormat = Nothing) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
DateTime

The value if found.

format
StandardFormat

The format the DateTime is in.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, UInt64)

Source:
JsonPatch.cs

Tries to get a UInt64 value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out ulong value);
member this.TryGetValue : ReadOnlySpan<byte> * uint64 -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As ULong) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
UInt64

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, UInt32)

Source:
JsonPatch.cs

Tries to get a UInt32 value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out uint value);
member this.TryGetValue : ReadOnlySpan<byte> * uint32 -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As UInteger) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
UInt32

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, UInt16)

Source:
JsonPatch.cs

Tries to get a UInt16 value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out ushort value);
member this.TryGetValue : ReadOnlySpan<byte> * uint16 -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As UShort) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
UInt16

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, String)

Source:
JsonPatch.cs

Tries to get a string value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out string? value);
member this.TryGetValue : ReadOnlySpan<byte> * string -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As String) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
String

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Single)

Source:
JsonPatch.cs

Tries to get a float value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out float value);
member this.TryGetValue : ReadOnlySpan<byte> * single -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Single) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Single

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Boolean)

Source:
JsonPatch.cs

Tries to get a boolean value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out bool value);
member this.TryGetValue : ReadOnlySpan<byte> * bool -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Boolean) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Boolean

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Int64)

Source:
JsonPatch.cs

Tries to get a Int64 value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out long value);
member this.TryGetValue : ReadOnlySpan<byte> * int64 -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Long) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Int64

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Int32)

Source:
JsonPatch.cs

Tries to get a Int32 value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out int value);
member this.TryGetValue : ReadOnlySpan<byte> * int -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Integer) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Int32

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Int16)

Source:
JsonPatch.cs

Tries to get a Int16 value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out short value);
member this.TryGetValue : ReadOnlySpan<byte> * int16 -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Short) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Int16

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Guid)

Source:
JsonPatch.cs

Tries to get a Guid value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out Guid value);
member this.TryGetValue : ReadOnlySpan<byte> * Guid -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Guid) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Guid

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Double)

Source:
JsonPatch.cs

Tries to get a double value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out double value);
member this.TryGetValue : ReadOnlySpan<byte> * double -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Double) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Double

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Decimal)

Source:
JsonPatch.cs

Tries to get a decimal value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out decimal value);
member this.TryGetValue : ReadOnlySpan<byte> * decimal -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Decimal) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Decimal

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, Byte)

Source:
JsonPatch.cs

Tries to get a byte value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out byte value);
member this.TryGetValue : ReadOnlySpan<byte> * byte -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As Byte) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
Byte

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to

TryGetValue(ReadOnlySpan<Byte>, SByte)

Source:
JsonPatch.cs

Tries to get a Int8 value at the specified JSON path.

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out sbyte value);
member this.TryGetValue : ReadOnlySpan<byte> * sbyte -> bool
Public Function TryGetValue (jsonPath As ReadOnlySpan(Of Byte), ByRef value As SByte) As Boolean

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to get.

value
SByte

The value if found.

Returns

True if the value was found and parsed; otherwise, false.

Applies to