共用方式為


JsonPatchDocument 類別

定義

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
繼承
JsonPatchDocument
屬性
Newtonsoft.Json.JsonConverterAttribute
實作

建構函式

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

屬性

ContractResolver
Operations

方法

Add(String, Object)

新增作業。 將會導致 { 「op」: 「add」, 「path」: 「/a/b/c」, 「value」: [ 「foo」, 「bar」 ] }

ApplyTo(Object)

套用此 JsonPatchDocument

ApplyTo(Object, Action<JsonPatchError>)

套用此 JsonPatchDocument

ApplyTo(Object, IObjectAdapter)

套用此 JsonPatchDocument

ApplyTo(Object, IObjectAdapter, Action<JsonPatchError>)

套用此 JsonPatchDocument

Copy(String, String)

將位於指定位置的值複製到目標位置。 將產生 ,例如: { 「op」: 「copy」, 「from」: 「/a/b/c」, 「path」: 「/a/b/e」 }

Move(String, String)

移除位於指定位置的值,並將其新增至目標位置。 將產生,例如: { 「op」: 「move」, 「from」: 「/a/b/c」, 「path」: 「/a/b/d」 }

Remove(String)

移除目標位置的值。 將會產生 {「op」: 「remove」, 「path」: 「/a/b/c」 }

Replace(String, Object)

取代值。 將會導致 { 「op」: 「replace」, 「path」: 「/a/b/c」, 「value」: 42 }

Test(String, Object)

測試值。 將會產生 {「op」: 「test」, 「path」: 「/a/b/c」, 「value」: 42 }

明確介面實作

IJsonPatchDocument.GetOperations()

適用於