共用方式為


JsonPatchDocument<TModel>.Test 方法

定義

多載

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)

來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
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)

來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
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)

來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
JsonPatchDocumentOfT.cs
來源:
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>

適用於