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)

リストの末尾に値を追加する

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

値型

パラメーター

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

ターゲットの場所

value
TProp

value

戻り値

チェーン用の JsonPatchDocument<TModel>

適用対象

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

操作を追加します。 {"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

値型

パラメーター

path
Expression<Func<TModel,TProp>>

ターゲットの場所

value
TProp

value

戻り値

チェーン用の JsonPatchDocument<TModel>

適用対象

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

指定した位置にあるリストに値を追加する

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

値型

パラメーター

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

ターゲットの場所

value
TProp

value

position
Int32

position

戻り値

チェーン用の JsonPatchDocument<TModel>

適用対象