Bagikan melalui


JsonPatchDocument<TModel>.Add Metode

Definisi

Overload

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

Menambahkan nilai ke akhir daftar

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

Tambahkan operasi. Akan menghasilkan, misalnya, { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

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

Tambahkan nilai ke daftar pada posisi tertentu

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

Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs

Menambahkan nilai ke akhir daftar

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)

Jenis parameter

TProp

jenis nilai

Parameter

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

lokasi target

value
TProp

nilai

Mengembalikan

Untuk JsonPatchDocument<TModel> penautan.

Berlaku untuk

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

Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs

Tambahkan operasi. Akan menghasilkan, misalnya, { "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)

Jenis parameter

TProp

jenis nilai

Parameter

path
Expression<Func<TModel,TProp>>

lokasi target

value
TProp

nilai

Mengembalikan

Untuk JsonPatchDocument<TModel> penautan.

Berlaku untuk

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

Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs
Sumber:
JsonPatchDocumentOfT.cs

Tambahkan nilai ke daftar pada posisi tertentu

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)

Jenis parameter

TProp

jenis nilai

Parameter

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

lokasi target

value
TProp

nilai

position
Int32

position

Mengembalikan

Untuk JsonPatchDocument<TModel> penautan.

Berlaku untuk