Share via


JsonPatch.Set Method

Definition

Overloads

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

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, DateTimeOffset, StandardFormat)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, DateTime, StandardFormat)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, UInt64)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, UInt32)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, UInt16)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, String)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Single)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, SByte)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, BinaryData)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Int32)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Int16)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Guid)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Double)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Decimal)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Byte[])

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Byte)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Boolean)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, Int64)

Sets a value at the specified JSON path.

Set(ReadOnlySpan<Byte>, TimeSpan, StandardFormat)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, TimeSpan value, System.Buffers.StandardFormat format = default);
member this.Set : ReadOnlySpan<byte> * TimeSpan * System.Buffers.StandardFormat -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As TimeSpan, Optional format As StandardFormat = Nothing)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
TimeSpan

The value to set.

format
StandardFormat

The format to encode the value into.

Applies to

Set(ReadOnlySpan<Byte>, DateTimeOffset, StandardFormat)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, DateTimeOffset value, System.Buffers.StandardFormat format = default);
member this.Set : ReadOnlySpan<byte> * DateTimeOffset * System.Buffers.StandardFormat -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As DateTimeOffset, Optional format As StandardFormat = Nothing)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
DateTimeOffset

The value to set.

format
StandardFormat

The format to encode the value into.

Applies to

Set(ReadOnlySpan<Byte>, DateTime, StandardFormat)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, DateTime value, System.Buffers.StandardFormat format = default);
member this.Set : ReadOnlySpan<byte> * DateTime * System.Buffers.StandardFormat -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As DateTime, Optional format As StandardFormat = Nothing)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
DateTime

The value to set.

format
StandardFormat

The format to encode the value into.

Applies to

Set(ReadOnlySpan<Byte>, UInt64)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, ulong value);
member this.Set : ReadOnlySpan<byte> * uint64 -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As ULong)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
UInt64

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, UInt32)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, uint value);
member this.Set : ReadOnlySpan<byte> * uint32 -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As UInteger)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
UInt32

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, UInt16)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, ushort value);
member this.Set : ReadOnlySpan<byte> * uint16 -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As UShort)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
UInt16

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, String)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, string value);
member this.Set : ReadOnlySpan<byte> * string -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As String)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
String

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, Single)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, float value);
member this.Set : ReadOnlySpan<byte> * single -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Single)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Single

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, SByte)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, sbyte value);
member this.Set : ReadOnlySpan<byte> * sbyte -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As SByte)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
SByte

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, ReadOnlySpan<byte> utf8Json);
member this.Set : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), utf8Json As ReadOnlySpan(Of Byte))

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

utf8Json
ReadOnlySpan<Byte>

The utf8 json to set.

Applies to

Set(ReadOnlySpan<Byte>, BinaryData)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, BinaryData utf8Json);
member this.Set : ReadOnlySpan<byte> * BinaryData -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), utf8Json As BinaryData)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

utf8Json
BinaryData

The utf8 json to set.

Applies to

Set(ReadOnlySpan<Byte>, Int32)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, int value);
member this.Set : ReadOnlySpan<byte> * int -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Integer)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Int32

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, Int16)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, short value);
member this.Set : ReadOnlySpan<byte> * int16 -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Short)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Int16

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, Guid)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, Guid value);
member this.Set : ReadOnlySpan<byte> * Guid -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Guid)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Guid

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, Double)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, double value);
member this.Set : ReadOnlySpan<byte> * double -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Double)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Double

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, Decimal)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, decimal value);
member this.Set : ReadOnlySpan<byte> * decimal -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Decimal)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Decimal

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, Byte[])

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, byte[] utf8Json);
member this.Set : ReadOnlySpan<byte> * byte[] -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), utf8Json As Byte())

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

utf8Json
Byte[]

The utf8 json to set.

Applies to

Set(ReadOnlySpan<Byte>, Byte)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, byte value);
member this.Set : ReadOnlySpan<byte> * byte -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Byte)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Byte

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, Boolean)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, bool value);
member this.Set : ReadOnlySpan<byte> * bool -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Boolean)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Boolean

The value to set.

Applies to

Set(ReadOnlySpan<Byte>, Int64)

Source:
JsonPatch.cs

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, long value);
member this.Set : ReadOnlySpan<byte> * int64 -> unit
Public Sub Set (jsonPath As ReadOnlySpan(Of Byte), value As Long)

Parameters

jsonPath
ReadOnlySpan<Byte>

The JSON path of the value to be set.

value
Int64

The value to set.

Applies to