JsonPatchDocument.Add(String, Object) 方法

定义

添加操作。 将生成 ,例如 { “op”: “add”, “path”: “/a/b/c”, “value”: [ “foo”, “bar” ] }

public:
 Microsoft::AspNetCore::JsonPatch::JsonPatchDocument ^ Add(System::String ^ path, System::Object ^ value);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument Add (string path, object value);
member this.Add : string * obj -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument
Public Function Add (path As String, value As Object) As JsonPatchDocument

参数

path
String

目标位置

value
Object

value

返回

用于链接的 JsonPatchDocument

适用于