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


JsonPatchDocument<TModel>.Move Метод

Определение

Перегрузки

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

Перемещение из позиции в списке в другое место в списке

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

Перемещение из позиции в списке в новое расположение

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

Переход от позиции в списке к концу другого списка

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

Перемещение из свойства в расположение в списке

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

Перемещение в конец списка

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

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

Move<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> ^ Move(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> Move<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.Move : 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 Move(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> для построения цепочки.

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

Move<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> ^ Move(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> Move<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.Move : 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 Move(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> для построения цепочки.

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

Move<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> ^ Move(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> Move<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.Move : 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 Move(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> для построения цепочки.

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

Move<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> ^ Move(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> Move<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.Move : 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 Move(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> для построения цепочки.

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

Move<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> ^ Move(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> Move<TProp> (System.Linq.Expressions.Expression<Func<TModel,TProp>> from, System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path);
member this.Move : 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 Move(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> для построения цепочки.

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

Move<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": "move", "from": "/a/b/c", "path": "/a/b/d" }

public:
generic <typename TProp>
 Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Move(System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ from, System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ path);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Move<TProp> (System.Linq.Expressions.Expression<Func<TModel,TProp>> from, System.Linq.Expressions.Expression<Func<TModel,TProp>> path);
member this.Move : System.Linq.Expressions.Expression<Func<'Model, 'Prop>> * System.Linq.Expressions.Expression<Func<'Model, 'Prop>> -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Move(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> для построения цепочки.

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