<PackageReference Include="System.ClientModel" Version="1.7.0" />

JsonPatch

public struct JsonPatch
A struct representing a JSON patch for partial updates to a JSON structure.
public struct EncodedValue

A patch value that has been encoded in UTF-8 bytes along with its value kind.

public sealed delegate PropagatorGetter : MulticastDelegate

Delegate for propagating get operations from child properties of the containing model.

public sealed delegate PropagatorSetter : MulticastDelegate

Delegate for propagating set operations to child properties of the containing model.

public JsonPatch(ReadOnlyMemory<byte> utf8Json)

Initializes a new instance of JsonPatch with utf8 JSON representing the entire object.

public void Append(ReadOnlySpan<byte> arrayPath, bool value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, byte value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, DateTime value, StandardFormat format = default)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, DateTimeOffset value, StandardFormat format = default)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, decimal value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, double value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, float value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, Guid value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, int value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, long value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, sbyte value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, short value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, TimeSpan value, StandardFormat format = default)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, uint value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, ulong value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, ushort value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, string value)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, byte[] utf8Json)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, BinaryData utf8Json)

Appends a value to an array at the specified JSON path.

public void Append(ReadOnlySpan<byte> arrayPath, ReadOnlySpan<byte> utf8Json)

Appends a value to an array at the specified JSON path.

public void AppendNull(ReadOnlySpan<byte> arrayPath)

Appends NULL to an array at the specified JSON path.

public bool Contains(ReadOnlySpan<byte> jsonPath)

Determines whether the specified JSON path exists in the patch.

public bool Contains(ReadOnlySpan<byte> prefix, ReadOnlySpan<byte> property)

Checks if there is a child property of the given prefix that matches the given property name. Allows the caller to avoid concatenating the prefix and property name to check for existence.

public bool GetBoolean(ReadOnlySpan<byte> jsonPath)

Gets a boolean value at the specified JSON path.

public byte GetByte(ReadOnlySpan<byte> jsonPath)

Gets a byte value at the specified JSON path.

public DateTime GetDateTime(ReadOnlySpan<byte> jsonPath, StandardFormat format = default)

Gets a DateTime value at the specified JSON path.

public DateTimeOffset GetDateTimeOffset(ReadOnlySpan<byte> jsonPath, StandardFormat format = default)

Gets a DateTimeOffset value at the specified JSON path.

public decimal GetDecimal(ReadOnlySpan<byte> jsonPath)

Gets a decimal value at the specified JSON path.

public double GetDouble(ReadOnlySpan<byte> jsonPath)

Gets a double value at the specified JSON path.

public float GetFloat(ReadOnlySpan<byte> jsonPath)

Gets a float value at the specified JSON path.

public Guid GetGuid(ReadOnlySpan<byte> jsonPath)

Gets a Guid value at the specified JSON path.

public short GetInt16(ReadOnlySpan<byte> jsonPath)

Gets a Int16 value at the specified JSON path.

public int GetInt32(ReadOnlySpan<byte> jsonPath)

Gets a Int32 value at the specified JSON path.

public long GetInt64(ReadOnlySpan<byte> jsonPath)

Gets a Int64 value at the specified JSON path.

public sbyte GetInt8(ReadOnlySpan<byte> jsonPath)

Gets a Int8 value at the specified JSON path.

public BinaryData GetJson(ReadOnlySpan<byte> jsonPath)

Gets the Utf8 JSON value at the specified JSON path.

public T? GetNullableValue<T>(ReadOnlySpan<byte> jsonPath) where T : struct

Gets a nullable primitive value at the specified JSON path.

public string GetString(ReadOnlySpan<byte> jsonPath)

Gets a string value at the specified JSON path.

public TimeSpan GetTimeSpan(ReadOnlySpan<byte> jsonPath, StandardFormat format = default)

Gets a TimeSpan value at the specified JSON path.

public ushort GetUInt16(ReadOnlySpan<byte> jsonPath)

Gets a UInt16 value at the specified JSON path.

public uint GetUInt32(ReadOnlySpan<byte> jsonPath)

Gets a UInt32 value at the specified JSON path.

public ulong GetUInt64(ReadOnlySpan<byte> jsonPath)

Gets a UInt64 value at the specified JSON path.

public bool IsRemoved(ReadOnlySpan<byte> jsonPath)

Checks if the value at the specified JSON path has been removed.

public void Remove(ReadOnlySpan<byte> jsonPath)

Removes the value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, bool value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, byte value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, DateTime value, StandardFormat format = default)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, DateTimeOffset value, StandardFormat format = default)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, decimal value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, double value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, float value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, Guid value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, int value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, long value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, sbyte value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, short value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, TimeSpan value, StandardFormat format = default)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, uint value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, ulong value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, ushort value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, string value)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, byte[] utf8Json)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, BinaryData utf8Json)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, ReadOnlySpan<byte> utf8Json)

Sets a value at the specified JSON path.

public void Set(ReadOnlySpan<byte> jsonPath, EncodedValue value)

Sets a value at the specified JSON path.

public void SetNull(ReadOnlySpan<byte> jsonPath)

Sets NULL at the specified JSON path.

public void SetPropagators(PropagatorSetter setter, PropagatorGetter getter)

Sets the callbacks for propagating values to/from another JsonPatch on child properties.

public string ToString(string format)

Returns a string representation of the object using the specified format.

public bool TryGetEncodedValue(ReadOnlySpan<byte> jsonPath, out EncodedValue value)

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

public bool TryGetJson(ReadOnlySpan<byte> jsonPath, out ReadOnlyMemory value)

Tries to get the Utf8 JSON value at the specified JSON path.

public bool TryGetNullableValue<T>(ReadOnlySpan<byte> jsonPath, out Nullable value) where T : struct

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out bool value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out byte value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out DateTime value, StandardFormat format = default)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out DateTimeOffset value, StandardFormat format = default)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out decimal value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out double value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out float value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out Guid value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out int value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out long value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out sbyte value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out short value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out TimeSpan value, StandardFormat format = default)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out uint value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out ulong value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out ushort value)

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

public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out string value)

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

public void WriteTo(Utf8JsonWriter writer, ReadOnlySpan<byte> jsonPath)

Writes the JSON representation of the JsonPatch to the specified Utf8JsonWriter for the specified JSON path. Writes in standard JSON format.

public void WriteTo(Utf8JsonWriter writer)

Writes the JSON representation of the JsonPatch to the specified Utf8JsonWriter.