Compartir a través de


JsonPatchDocument Clase

Definición

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
Herencia
JsonPatchDocument
Atributos
Newtonsoft.Json.JsonConverterAttribute
Implementaciones

Constructores

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

Propiedades

ContractResolver
Operations

Métodos

Add(String, Object)

Agregar operación. Dará como resultado, por ejemplo, { "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 el valor en la ubicación especificada en la ubicación de destino. Dará como resultado, por ejemplo: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

Move(String, String)

Quita el valor en la ubicación especificada y lo agrega a la ubicación de destino. Dará como resultado, por ejemplo: { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }

Remove(String)

Quite el valor en la ubicación de destino. Dará como resultado, por ejemplo, { "op": "remove", "path": "/a/b/c" }

Replace(String, Object)

Reemplace el valor. Dará como resultado, por ejemplo, { "op": "replace", "path": "/a/b/c", "value": 42 }

Test(String, Object)

Valor de prueba. Dará como resultado, por ejemplo, { "op": "test", "path": "/a/b/c", "value": 42 }

Implementaciones de interfaz explícitas

IJsonPatchDocument.GetOperations()

Se aplica a