Compartir a través de


JsonPatchDocument<TModel>.Replace Método

Definición

Sobrecargas

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

Reemplace el valor. Dará como resultado, por ejemplo, { "op": "replace", "path": "/a/b/c", "value": 42 }

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

Reemplazar el valor al final de una lista

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

Reemplazar el valor de una lista en una posición determinada

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

Reemplace el valor. Dará como resultado, por ejemplo, { "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)

Parámetros de tipo

TProp

Parámetros

path
Expression<Func<TModel,TProp>>

ubicación de destino

value
TProp

value

Devoluciones

La interfaz JsonPatchDocument<TModel> para el encadenamiento.

Se aplica a

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

Reemplazar el valor al final de una lista

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)

Parámetros de tipo

TProp

Tipo de valor

Parámetros

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

ubicación de destino

value
TProp

value

Devoluciones

La interfaz JsonPatchDocument<TModel> para el encadenamiento.

Se aplica a

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

Reemplazar el valor de una lista en una posición determinada

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)

Parámetros de tipo

TProp

Tipo de valor

Parámetros

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

ubicación de destino

value
TProp

value

position
Int32

position

Devoluciones

La interfaz JsonPatchDocument<TModel> para el encadenamiento.

Se aplica a