JsonPatchDocument<TModel>.Replace メソッド

定義

オーバーロード

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

値を置き換えます。 {"op": "replace", "path": "/a/b/c", "value": 42 } のようになります。

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

リストの末尾にある値を置き換える

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

指定した位置にあるリスト内の値を置き換える

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

値を置き換えます。 {"op": "replace", "path": "/a/b/c", "value": 42 } のようになります。

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

適用対象

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

リストの末尾にある値を置き換える

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

適用対象

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

指定した位置にあるリスト内の値を置き換える

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

適用対象