IObjectAdapter.Copy(Operation, Object) 方法

定义

使用“复制”操作,将值从指定位置复制到目标位置。

操作对象必须包含一个“from”成员,该成员引用目标文档中要从其复制值的位置。

必须存在“发件人”位置才能使操作成功。

例如:

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

请参阅 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)

参数

operation
Operation

复制操作。

objectToApplyTo
Object

要对其应用操作的对象。

适用于