Freigeben über


JsonPatchDocument<TModel>.Add Methode

Definition

Überlädt

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

Hinzufügen eines Werts am Ende der Liste

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

Vorgang hinzufügen. Führt z. B. zu { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

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

Hinzufügen eines Werts zur Liste an einer bestimmten Position

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

Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs

Hinzufügen eines Werts am Ende der Liste

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

Typparameter

TProp

Werttyp

Parameter

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

Zielspeicherort

value
TProp

value

Gibt zurück

Die JsonPatchDocument<TModel> für die Verkettung.

Gilt für:

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

Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs

Vorgang hinzufügen. Führt z. B. zu { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

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

Typparameter

TProp

Werttyp

Parameter

path
Expression<Func<TModel,TProp>>

Zielspeicherort

value
TProp

value

Gibt zurück

Die JsonPatchDocument<TModel> für die Verkettung.

Gilt für:

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

Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs
Quelle:
JsonPatchDocumentOfT.cs

Hinzufügen eines Werts zur Liste an einer bestimmten Position

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

Typparameter

TProp

Werttyp

Parameter

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

Zielspeicherort

value
TProp

value

position
Int32

position

Gibt zurück

Die JsonPatchDocument<TModel> für die Verkettung.

Gilt für: