Share via


IObjectAdapter.Move(Operation, Object) Method

Definition

Using the "move" operation the value at a specified location is removed and added to the target location.

The operation object MUST contain a "from" member, which references the location in the target document to move the value from.

The "from" location MUST exist for the operation to be successful.

For example:

{ "op": "move", "from": "/a/b/c", "path": "/a/b/d" }

A location cannot be moved into one of its children.

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

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

Parameters

operation
Operation

The move operation.

objectToApplyTo
Object

Object to apply the operation to.

Applies to