共用方式為


JsonPatchDocument<TModel>.Add 方法

定義

多載

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

將值新增至清單結尾

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

新增作業。 將會導致 { 「op」: 「add」, 「path」: 「/a/b/c」, 「value」: [ 「foo」, 「bar」 ] }

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

將值新增至指定位置的清單

Add<TProp>(Expression<Func<TModel,IList<TProp>>>, 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> ^ Add(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, TProp value);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Add<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, TProp value);
member this.Add : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * 'Prop -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Add(Of TProp) (path As Expression(Of Func(Of TModel, IList(Of TProp))), value As TProp) As JsonPatchDocument(Of TModel)

類型參數

TProp

Value Type - 實值類型

參數

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

目標位置

value
TProp

value

傳回

用於鏈結的 JsonPatchDocument<TModel>

適用於

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

來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs

新增作業。 將會導致 { 「op」: 「add」, 「path」: 「/a/b/c」, 「value」: [ 「foo」, 「bar」 ] }

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

類型參數

TProp

Value Type - 實值類型

參數

path
Expression<Func<TModel,TProp>>

目標位置

value
TProp

value

傳回

用於鏈結的 JsonPatchDocument<TModel>

適用於

Add<TProp>(Expression<Func<TModel,IList<TProp>>>, 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> ^ Add(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, TProp value, int position);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Add<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, TProp value, int position);
member this.Add : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * 'Prop * int -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Add(Of TProp) (path As Expression(Of Func(Of TModel, IList(Of TProp))), value As TProp, position As Integer) As JsonPatchDocument(Of TModel)

類型參數

TProp

Value Type - 實值類型

參數

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

目標位置

value
TProp

value

position
Int32

position

傳回

用於鏈結的 JsonPatchDocument<TModel>

適用於