JsonPatchDocument<TModel>.Test 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Test<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp) |
在列表末尾测试值 |
Test<TProp>(Expression<Func<TModel,IList<TProp>>>, TProp, Int32) |
在给定位置的列表中测试值 |
Test<TProp>(Expression<Func<TModel,TProp>>, TProp) |
测试值。 将生成 ,例如 { “op”: “test”, “path”: “/a/b/c”, “value”: 42 } |
Test<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> ^ Test(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, TProp value);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Test<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, TProp value);
member this.Test : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * 'Prop -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Test(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>。
适用于
Test<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> ^ Test(System::Linq::Expressions::Expression<Func<TModel, System::Collections::Generic::IList<TProp> ^> ^> ^ path, TProp value, int position);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Test<TProp> (System.Linq.Expressions.Expression<Func<TModel,System.Collections.Generic.IList<TProp>>> path, TProp value, int position);
member this.Test : System.Linq.Expressions.Expression<Func<'Model, System.Collections.Generic.IList<'Prop>>> * 'Prop * int -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Test(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>。
适用于
Test<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”: “test”, “path”: “/a/b/c”, “value”: 42 }
public:
generic <typename TProp>
Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<TModel> ^ Test(System::Linq::Expressions::Expression<Func<TModel, TProp> ^> ^ path, TProp value);
public Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<TModel> Test<TProp> (System.Linq.Expressions.Expression<Func<TModel,TProp>> path, TProp value);
member this.Test : System.Linq.Expressions.Expression<Func<'Model, 'Prop>> * 'Prop -> Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'Model (requires 'Model : null)>
Public Function Test(Of TProp) (path As Expression(Of Func(Of TModel, TProp)), value As TProp) As JsonPatchDocument(Of TModel)
类型参数
- TProp
参数
- path
- Expression<Func<TModel,TProp>>
目标位置
- value
- TProp
value
返回
用于链接的 JsonPatchDocument<TModel>。