Condividi tramite


JsonPatchExtensions.ApplyTo Metodo

Definizione

Overload

ApplyTo<T>(JsonPatchDocument<T>, T, ModelStateDictionary)

Applica operazioni di patch JSON sugli oggetti e registra gli errori in ModelStateDictionary.

ApplyTo<T>(JsonPatchDocument<T>, T, ModelStateDictionary, String)

Applica operazioni di patch JSON sugli oggetti e registra gli errori in ModelStateDictionary.

ApplyTo<T>(JsonPatchDocument<T>, T, ModelStateDictionary)

Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs

Applica operazioni di patch JSON sugli oggetti e registra gli errori in ModelStateDictionary.

public:
generic <typename T>
 where T : class[System::Runtime::CompilerServices::Extension]
 static void ApplyTo(Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<T> ^ patchDoc, T objectToApplyTo, Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
public static void ApplyTo<T> (this Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<T> patchDoc, T objectToApplyTo, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) where T : class;
static member ApplyTo : Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'T (requires 'T : null)> * 'T * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> unit (requires 'T : null)
<Extension()>
Public Sub ApplyTo(Of T As Class) (patchDoc As JsonPatchDocument(Of T), objectToApplyTo As T, modelState As ModelStateDictionary)

Parametri di tipo

T

Parametri

objectToApplyTo
T

Entità in cui JsonPatchDocument<TModel> viene applicata.

modelState
ModelStateDictionary

Oggetto ModelStateDictionary da aggiungere errori.

Si applica a

ApplyTo<T>(JsonPatchDocument<T>, T, ModelStateDictionary, String)

Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs
Origine:
JsonPatchExtensions.cs

Applica operazioni di patch JSON sugli oggetti e registra gli errori in ModelStateDictionary.

public:
generic <typename T>
 where T : class[System::Runtime::CompilerServices::Extension]
 static void ApplyTo(Microsoft::AspNetCore::JsonPatch::JsonPatchDocument<T> ^ patchDoc, T objectToApplyTo, Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState, System::String ^ prefix);
public static void ApplyTo<T> (this Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<T> patchDoc, T objectToApplyTo, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, string prefix) where T : class;
static member ApplyTo : Microsoft.AspNetCore.JsonPatch.JsonPatchDocument<'T (requires 'T : null)> * 'T * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary * string -> unit (requires 'T : null)
<Extension()>
Public Sub ApplyTo(Of T As Class) (patchDoc As JsonPatchDocument(Of T), objectToApplyTo As T, modelState As ModelStateDictionary, prefix As String)

Parametri di tipo

T

Parametri

objectToApplyTo
T

Entità in cui JsonPatchDocument<TModel> viene applicata.

modelState
ModelStateDictionary

Oggetto ModelStateDictionary da aggiungere errori.

prefix
String

Prefisso da usare durante la ricerca di valori in ModelStateDictionary.

Si applica a