ObjectAdapter.Remove(Operation, Object) 方法

定义

“删除”操作将删除目标位置的值。

必须存在目标位置才能使操作成功。

例如:

{ “op”: “remove”, “path”: “/a/b/c” }

如果从数组中删除元素,则指定索引上方的任何元素都向左移动一个位置。

public:
 virtual void Remove(Microsoft::AspNetCore::JsonPatch::Operations::Operation ^ operation, System::Object ^ objectToApplyTo);
public void Remove (Microsoft.AspNetCore.JsonPatch.Operations.Operation operation, object objectToApplyTo);
abstract member Remove : Microsoft.AspNetCore.JsonPatch.Operations.Operation * obj -> unit
override this.Remove : Microsoft.AspNetCore.JsonPatch.Operations.Operation * obj -> unit
Public Sub Remove (operation As Operation, objectToApplyTo As Object)

参数

operation
Operation

删除操作。

objectToApplyTo
Object

要对其应用操作的对象。

实现

适用于