Compartilhar via


JsonPatchDocument Classe

Definição

public ref class JsonPatchDocument : Microsoft::AspNetCore::JsonPatch::IJsonPatchDocument
[Newtonsoft.Json.JsonConverter(typeof(Microsoft.AspNetCore.JsonPatch.Converters.JsonPatchDocumentConverter))]
public class JsonPatchDocument : Microsoft.AspNetCore.JsonPatch.IJsonPatchDocument
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.AspNetCore.JsonPatch.Converters.JsonPatchDocumentConverter))>]
type JsonPatchDocument = class
    interface IJsonPatchDocument
Public Class JsonPatchDocument
Implements IJsonPatchDocument
Herança
JsonPatchDocument
Atributos
Newtonsoft.Json.JsonConverterAttribute
Implementações

Construtores

JsonPatchDocument()
JsonPatchDocument(List<Operation>, IContractResolver)

Propriedades

ContractResolver
Operations

Métodos

Add(String, Object)

Adicionar operação. Resultará em, por exemplo, { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

ApplyTo(Object)

Aplicar este JsonPatchDocument

ApplyTo(Object, Action<JsonPatchError>)

Aplicar este JsonPatchDocument

ApplyTo(Object, IObjectAdapter)

Aplicar este JsonPatchDocument

ApplyTo(Object, IObjectAdapter, Action<JsonPatchError>)

Aplicar este JsonPatchDocument

Copy(String, String)

Copie o valor no local especificado para o local de destino. Resultará em, por exemplo: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

Move(String, String)

Remove o valor no local especificado e o adiciona ao local de destino. Resultará em, por exemplo: { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }

Remove(String)

Remova o valor no local de destino. Resultará em, por exemplo, { "op": "remove", "path": "/a/b/c" }

Replace(String, Object)

Substitua o valor. Resultará em, por exemplo, { "op": "replace", "path": "/a/b/c", "value": 42 }

Test(String, Object)

Valor de teste. Resultará em, por exemplo, { "op": "test", "path": "/a/b/c", "value": 42 }

Implantações explícitas de interface

IJsonPatchDocument.GetOperations()

Aplica-se a