JsonPatchDocument<TModel>.Replace Metoda

Definicja

Przeciążenia

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

Zastąp wartość. Spowoduje to na przykład { "op": "replace", "path": "/a/b/c", "value": 42 }

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

Zamień wartość na końcu listy

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

Zamienianie wartości na liście na danej pozycji

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

Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs

Zastąp wartość. Spowoduje to na przykład { "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)

Parametry typu

TProp

Parametry

path
Expression<Func<TModel,TProp>>

lokalizacja docelowa

value
TProp

wartość

Zwraca

Element JsonPatchDocument<TModel> do tworzenia łańcucha.

Dotyczy

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

Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs

Zamień wartość na końcu listy

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)

Parametry typu

TProp

typ wartości

Parametry

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

lokalizacja docelowa

value
TProp

wartość

Zwraca

Element JsonPatchDocument<TModel> do tworzenia łańcucha.

Dotyczy

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

Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs
Źródło:
JsonPatchDocumentOfT.cs

Zamienianie wartości na liście na danej pozycji

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)

Parametry typu

TProp

typ wartości

Parametry

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

lokalizacja docelowa

value
TProp

wartość

position
Int32

pozycja

Zwraca

Element JsonPatchDocument<TModel> do tworzenia łańcucha.

Dotyczy