Partager via


JsonPatchExtensions.ApplyTo Méthode

Définition

Surcharges

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

Applique des opérations de correctif JSON sur l’objet et consigne les erreurs dans ModelStateDictionary.

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

Applique des opérations de correctif JSON sur l’objet et consigne les erreurs dans ModelStateDictionary.

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

Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs

Applique des opérations de correctif JSON sur l’objet et consigne les erreurs dans 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)

Paramètres de type

T

Paramètres

patchDoc
JsonPatchDocument<T>

L’JsonPatchDocument<TModel>opérateur

objectToApplyTo
T

Entité sur laquelle JsonPatchDocument<TModel> est appliqué.

modelState
ModelStateDictionary

à ajouter des ModelStateDictionary erreurs.

S’applique à

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

Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs
Source:
JsonPatchExtensions.cs

Applique des opérations de correctif JSON sur l’objet et consigne les erreurs dans 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)

Paramètres de type

T

Paramètres

patchDoc
JsonPatchDocument<T>

L’JsonPatchDocument<TModel>opérateur

objectToApplyTo
T

Entité sur laquelle JsonPatchDocument<TModel> est appliqué.

modelState
ModelStateDictionary

à ajouter des ModelStateDictionary erreurs.

prefix
String

Préfixe à utiliser lors de la recherche de valeurs dans ModelStateDictionary.

S’applique à