Condividi tramite


JsonPatchDocument<TModel>.Add Metodo

Definizione

Overload

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

Aggiungere valore alla fine dell'elenco

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

Aggiungere un'operazione. Genera, ad esempio, { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

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

Aggiungere valore all'elenco in corrispondenza della posizione specificata

Add<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

Aggiungere valore alla fine dell'elenco

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)

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

Add<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

Aggiungere un'operazione. Genera, ad esempio, { "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)

Parametri di tipo

TProp

tipo di valore

Parametri

path
Expression<Func<TModel,TProp>>

posizione di destinazione

value
TProp

Valore

Restituisce

Oggetto JsonPatchDocument<TModel> per il concatenamento.

Si applica a

Add<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

Aggiungere valore all'elenco in corrispondenza della posizione specificata

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)

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