JsonPatchDocument Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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, Action<JsonPatchError>) |
Aplicar este JsonPatchDocument |
| ApplyTo(Object, IObjectAdapter, Action<JsonPatchError>) |
Aplicar este JsonPatchDocument |
| ApplyTo(Object, IObjectAdapter) |
Aplicar este JsonPatchDocument |
| ApplyTo(Object) |
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() |