Compartilhar via


JsonPatchDocument<TModel>.Test Método

Definição

Sobrecargas

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

Valor de teste no final de uma lista

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

Valor de teste em uma lista em determinada posição

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

Valor de teste. Resultará em, por exemplo, { "op": "test", "path": "/a/b/c", "value": 42 }

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

Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs

Valor de teste no final de uma lista

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)

Parâmetros de tipo

TProp

tipo de valor

Parâmetros

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

local de destino

value
TProp

value

Retornos

O JsonPatchDocument<TModel> para encadeamento.

Aplica-se a

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

Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs

Valor de teste em uma lista em determinada posição

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)

Parâmetros de tipo

TProp

tipo de valor

Parâmetros

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

local de destino

value
TProp

value

position
Int32

position

Retornos

O JsonPatchDocument<TModel> para encadeamento.

Aplica-se a

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

Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs
Origem:
JsonPatchDocumentOfT.cs

Valor de teste. Resultará em, por exemplo, { "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)

Parâmetros de tipo

TProp

Parâmetros

path
Expression<Func<TModel,TProp>>

local de destino

value
TProp

value

Retornos

O JsonPatchDocument<TModel> para encadeamento.

Aplica-se a