Condividi tramite


JsonPatchDocument<TModel>.Replace Metodo

Definizione

Overload

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

Sostituire il valore. Genera, ad esempio, { "op": "replace", "path": "/a/b/c", "value": 42 }

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

Sostituire il valore alla fine di un elenco

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

Sostituire il valore in un elenco in corrispondenza della posizione specificata

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

Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs

Sostituire il valore. Genera, ad esempio, { "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)

Parametri di tipo

TProp

Parametri

path
Expression<Func<TModel,TProp>>

posizione di destinazione

value
TProp

Valore

Restituisce

Oggetto JsonPatchDocument<TModel> per il concatenamento.

Si applica a

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

Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs

Sostituire il valore alla fine di un elenco

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)

Parametri di tipo

TProp

tipo di valore

Parametri

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

posizione di destinazione

value
TProp

Valore

Restituisce

Oggetto JsonPatchDocument<TModel> per il concatenamento.

Si applica a

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

Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs
Origine:
JsonPatchDocumentOfT.cs

Sostituire il valore in un elenco in corrispondenza della posizione specificata

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)

Parametri di tipo

TProp

tipo di valore

Parametri

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

posizione di destinazione

value
TProp

Valore

position
Int32

position

Restituisce

Oggetto JsonPatchDocument<TModel> per il concatenamento.

Si applica a