IObjectAdapter.Copy(Operation, Object) Method

Definition

Using the "copy" operation, a value is copied from a specified location to the target location.

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

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

For example:

{ "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

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

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

Parameters

operation
Operation

The copy operation.

objectToApplyTo
Object

Object to apply the operation to.

Applies to