JsonPatchDocument<TModel>.Add 方法

定义

重载

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

将值添加到列表末尾

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

添加操作。 将生成 ,例如 { “op”: “add”, “path”: “/a/b/c”, “value”: [ “foo”, “bar” ] }

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

将值添加到位于给定位置的列表

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

Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs

将值添加到列表末尾

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)

类型参数

TProp

Value Type — 值类型

参数

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

目标位置

value
TProp

value

返回

用于链接的 JsonPatchDocument<TModel>

适用于

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

Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs

添加操作。 将生成 ,例如 { “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)

类型参数

TProp

Value Type — 值类型

参数

path
Expression<Func<TModel,TProp>>

目标位置

value
TProp

value

返回

用于链接的 JsonPatchDocument<TModel>

适用于

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

Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs
Source:
JsonPatchDocumentOfT.cs

将值添加到位于给定位置的列表

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)

类型参数

TProp

Value Type — 值类型

参数

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

目标位置

value
TProp

value

position
Int32

position

返回

用于链接的 JsonPatchDocument<TModel>

适用于