Поделиться через


JsonPatchDocument<TModel>.Copy Метод

Определение

Перегрузки

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,IList<TProp>>>, Int32)

Копирование из позиции в списке в новое место в списке

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,TProp>>)

Копирование из позиции в списке в новое расположение

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,IList<TProp>>>, Int32)

Копирование из свойства в расположение в списке

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,TProp>>)

Скопируйте значение из указанного расположения в целевое расположение. Результатом будет, например: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,IList<TProp>>>)

Копирование в конец списка

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,IList<TProp>>>)

Копирование из позиции в списке в конец другого списка

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,IList<TProp>>>, Int32)

Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs

Копирование из позиции в списке в новое место в списке

public:
generic <typename TProp>
 Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Copy(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ from, int positionFrom, System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, int positionTo);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Copy<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> from, int positionFrom, System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, int positionTo);
member this.Copy : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * int * System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * int -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Copy(Of TProp) (from As Expression(Of Func(Of TModel, IList(Of TProp))), positionFrom As Integer, path As Expression(Of Func(Of TModel, IList(Of TProp))), positionTo As Integer) As JsonPatchDocument(Of TModel)

Параметры типа

TProp

Параметры

from
Expression<Func<TModel,IList<TProp>>>

исходное расположение

positionFrom
Int32

position (источник)

path
Expression<Func<TModel,IList<TProp>>>

целевое расположение

positionTo
Int32

position (target)

Возвращаемое значение

JsonPatchDocument<TModel> для построения цепочки.

Применяется к

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,TProp>>)

Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs

Копирование из позиции в списке в новое расположение

public:
generic <typename TProp>
 Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Copy(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ from, int positionFrom, System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ path);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Copy<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> from, int positionFrom, System.Linq.Expressions.Expression<Func<TModel,TProp>> path);
member this.Copy : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * int * System.Linq.Expressions.Expression<Func<'Model, 'Prop>> -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Copy(Of TProp) (from As Expression(Of Func(Of TModel, IList(Of TProp))), positionFrom As Integer, path As Expression(Of Func(Of TModel, TProp))) As JsonPatchDocument(Of TModel)

Параметры типа

TProp

Параметры

from
Expression<Func<TModel,IList<TProp>>>

исходное расположение

positionFrom
Int32

position

path
Expression<Func<TModel,TProp>>

целевое расположение

Возвращаемое значение

JsonPatchDocument<TModel> для построения цепочки.

Применяется к

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,IList<TProp>>>, Int32)

Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs

Копирование из свойства в расположение в списке

public:
generic <typename TProp>
 Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Copy(System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ from, System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, int positionTo);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Copy<TProp> (System.Linq.Expressions.Expression<Func<TModel,TProp>> from, System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, int positionTo);
member this.Copy : System.Linq.Expressions.Expression<Func<'Model, 'Prop>> * System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * int -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Copy(Of TProp) (from As Expression(Of Func(Of TModel, TProp)), path As Expression(Of Func(Of TModel, IList(Of TProp))), positionTo As Integer) As JsonPatchDocument(Of TModel)

Параметры типа

TProp

Параметры

from
Expression<Func<TModel,TProp>>

исходное расположение

path
Expression<Func<TModel,IList<TProp>>>

целевое расположение

positionTo
Int32

position

Возвращаемое значение

JsonPatchDocument<TModel> для построения цепочки.

Применяется к

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,TProp>>)

Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs

Скопируйте значение из указанного расположения в целевое расположение. Результатом будет, например: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

public:
generic <typename TProp>
 Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Copy(System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ from, System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ path);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Copy<TProp> (System.Linq.Expressions.Expression<Func<TModel,TProp>> from, System.Linq.Expressions.Expression<Func<TModel,TProp>> path);
member this.Copy : System.Linq.Expressions.Expression<Func<'Model, 'Prop>> * System.Linq.Expressions.Expression<Func<'Model, 'Prop>> -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Copy(Of TProp) (from As Expression(Of Func(Of TModel, TProp)), path As Expression(Of Func(Of TModel, TProp))) As JsonPatchDocument(Of TModel)

Параметры типа

TProp

Параметры

from
Expression<Func<TModel,TProp>>

исходное расположение

path
Expression<Func<TModel,TProp>>

целевое расположение

Возвращаемое значение

JsonPatchDocument<TModel> для построения цепочки.

Применяется к

Copy<TProp>(Expression<Func<TModel,TProp>>, Expression<Func<TModel,IList<TProp>>>)

Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs

Копирование в конец списка

public:
generic <typename TProp>
 Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Copy(System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ from, System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Copy<TProp> (System.Linq.Expressions.Expression<Func<TModel,TProp>> from, System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path);
member this.Copy : System.Linq.Expressions.Expression<Func<'Model, 'Prop>> * System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Copy(Of TProp) (from As Expression(Of Func(Of TModel, TProp)), path As Expression(Of Func(Of TModel, IList(Of TProp)))) As JsonPatchDocument(Of TModel)

Параметры типа

TProp

Параметры

from
Expression<Func<TModel,TProp>>

исходное расположение

path
Expression<Func<TModel,IList<TProp>>>

целевое расположение

Возвращаемое значение

JsonPatchDocument<TModel> для построения цепочки.

Применяется к

Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,IList<TProp>>>)

Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs
Исходный код:
JsonPatchDocumentOfT.cs

Копирование из позиции в списке в конец другого списка

public:
generic <typename TProp>
 Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Copy(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ from, int positionFrom, System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Copy<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> from, int positionFrom, System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path);
member this.Copy : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * int * System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Copy(Of TProp) (from As Expression(Of Func(Of TModel, IList(Of TProp))), positionFrom As Integer, path As Expression(Of Func(Of TModel, IList(Of TProp)))) As JsonPatchDocument(Of TModel)

Параметры типа

TProp

Параметры

from
Expression<Func<TModel,IList<TProp>>>

исходное расположение

positionFrom
Int32

position

path
Expression<Func<TModel,IList<TProp>>>

целевое расположение

Возвращаемое значение

JsonPatchDocument<TModel> для построения цепочки.

Применяется к