JsonPatchDocument<TModel>.Replace Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Replace<TProp>(Expression<Func<TModel,TProp>>, TProp) |
Replace value. Will result in, for example, { "op": "replace", "path": "/a/b/c", "value": 42 } |
Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp) |
Replace value at end of a list |
Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp, Int32) |
Replace value in a list at given position |
Replace<TProp>(Expression<Func<TModel,TProp>>, TProp)
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
Replace value. Will result in, for example, { "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)
Type Parameters
- TProp
Parameters
- path
- Expression<Func<TModel,TProp>>
target location
- value
- TProp
value
Returns
The JsonPatchDocument<TModel> for chaining.
Applies to
Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp)
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
Replace value at end of a list
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)
Type Parameters
- TProp
value type
Parameters
- path
- Expression<Func<TModel,IList<TProp>>>
target location
- value
- TProp
value
Returns
The JsonPatchDocument<TModel> for chaining.
Applies to
Replace<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp, Int32)
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
- Source:
- JsonPatchDocumentOfT.cs
Replace value in a list at given position
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)
Type Parameters
- TProp
value type
Parameters
- path
- Expression<Func<TModel,IList<TProp>>>
target location
- value
- TProp
value
- position
- Int32
position
Returns
The JsonPatchDocument<TModel> for chaining.