JsonPatchDocument.Replace(String, Object) 方法

定义

替换值。 将生成 ,例如{ “op”: “replace”, “path”: “/a/b/c”, “value”: 42 }

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

参数

path
String

目标位置

value
Object

value

返回

用于链接的 JsonPatchDocument

适用于