Share via


IObjectAdapter.Remove(Operation, Object) Method

Definition

Using the "remove" operation the value at the target location is removed.

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.

See RFC 6902 https://tools.ietf.org/html/rfc6902#page-6

public:
 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
Public Sub Remove (operation As Operation, objectToApplyTo As Object)

Parameters

operation
Operation

The remove operation.

objectToApplyTo
Object

Object to apply the operation to.

Applies to