Delen via


JsonPatchDocument Class

Definition

Represents a JSON Patch document.

public class JsonPatchDocument
type JsonPatchDocument = class
Public Class JsonPatchDocument
Inheritance
JsonPatchDocument

Constructors

JsonPatchDocument()

Initializes a new instance of JsonPatchDocument that uses JsonObjectSerializer as the default serializer.

JsonPatchDocument(ObjectSerializer)

Initializes a new instance of JsonPatchDocument

JsonPatchDocument(ReadOnlyMemory<Byte>, ObjectSerializer)

Initializes a new instance of JsonPatchDocument using an existing UTF8-encoded JSON Patch document.

JsonPatchDocument(ReadOnlyMemory<Byte>)

Initializes a new instance of JsonPatchDocument

Methods

AppendAdd<T>(String, T)

Appends an "add" operation to this JsonPatchDocument.

AppendAddRaw(String, String)

Appends an "add" operation to this JsonPatchDocument.

AppendCopy(String, String)

Appends a "copy" operation to this JsonPatchDocument.

AppendMove(String, String)

Appends a "move" operation to this JsonPatchDocument.

AppendRemove(String)

Appends a "remove" operation to this JsonPatchDocument.

AppendReplace<T>(String, T)

Appends a "replace" operation to this JsonPatchDocument.

AppendReplaceRaw(String, String)

Appends a "replace" operation to this JsonPatchDocument.

AppendTest<T>(String, T)

Appends a "test" operation to this JsonPatchDocument.

AppendTestRaw(String, String)

Appends a "test" operation to this JsonPatchDocument.

ToBytes()

Returns a UTF8-encoded representation of this JsonPatchDocument instance.

ToString()

Returns a formatted JSON string representation of this JsonPatchDocument.

Applies to