Condividi tramite


JsonPatchDocument Classe

Definizione

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
Ereditarietà
JsonPatchDocument
Attributi
Newtonsoft.Json.JsonConverterAttribute
Implementazioni

Costruttori

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

Proprietà

ContractResolver
Operations

Metodi

Add(String, Object)

Aggiungere l'operazione. Verrà generato, ad esempio, { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

ApplyTo(Object)

Applicare questo JsonPatchDocument

ApplyTo(Object, Action<JsonPatchError>)

Applicare questo JsonPatchDocument

ApplyTo(Object, IObjectAdapter)

Applicare questo JsonPatchDocument

ApplyTo(Object, IObjectAdapter, Action<JsonPatchError>)

Applicare questo JsonPatchDocument

Copy(String, String)

Copiare il valore in corrispondenza della posizione specificata nella posizione di destinazione. Verrà generato, ad esempio: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

Move(String, String)

Rimuove il valore nella posizione specificata e lo aggiunge alla posizione di destinazione. Verrà generato, ad esempio: { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }

Remove(String)

Rimuovere il valore nella posizione di destinazione. Verrà generato, ad esempio, { "op": "remove", "path": "/a/b/c" }

Replace(String, Object)

Sostituire il valore. Verrà generato, ad esempio, { "op": "replace", "path": "/a/b/c", "value": 42 }

Test(String, Object)

Valore di test. Verrà generato, ad esempio, { "op": "test", "path": "/a/b/c", "value": 42 }

Implementazioni dell'interfaccia esplicita

IJsonPatchDocument.GetOperations()

Si applica a