Share via


ObjectAdapter.Remove(Operation, Object) Method

Definition

The "remove" operation removes the value at the target location.

The target location MUST exist for the operation to be successful.

For example:

{ "op": "remove", "path": "/a/b/c" }

If removing an element from an array, any elements above the specified index are shifted one position to the left.

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)

Parameters

operation
Operation

The remove operation.

objectToApplyTo
Object

Object to apply the operation to.

Implements

Applies to