JsonPatchDocument<TModel>.Copy 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
從清單中的某個位置複製到清單中的新位置
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 (source)
- path
- Expression<Func<TModel,IList<TProp>>>
目標位置
- positionTo
- Int32
位置 (目標)
傳回
用於鏈結的 JsonPatchDocument<TModel>。
適用於
Copy<TProp>(Expression<Func<TModel,IList<TProp>>>, Int32, Expression<Func<TModel,TProp>>)
從清單中的位置複製到新位置
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)
從屬性複製到清單中的位置
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>>)
將位於指定位置的值複製到目標位置。 將產生 ,例如: { 「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>>>)
複製到清單結尾
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>>>)
從清單中的某個位置複製到另一個清單的結尾
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>。