JsonPatchExtensions.ApplyTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ApplyTo<T>(JsonPatchDocument<T>, T, ModelStateDictionary) |
Applies JSON patch operations on object and logs errors in ModelStateDictionary. |
ApplyTo<T>(JsonPatchDocument<T>, T, ModelStateDictionary, String) |
Applies JSON patch operations on object and logs errors in 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
Applies JSON patch operations on object and logs errors 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)
Type Parameters
- T
Parameters
- patchDoc
- JsonPatchDocument<T>
- objectToApplyTo
- T
The entity on which JsonPatchDocument<TModel> is applied.
- modelState
- ModelStateDictionary
The ModelStateDictionary to add errors.
Applies to
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
Applies JSON patch operations on object and logs errors 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)
Type Parameters
- T
Parameters
- patchDoc
- JsonPatchDocument<T>
- objectToApplyTo
- T
The entity on which JsonPatchDocument<TModel> is applied.
- modelState
- ModelStateDictionary
The ModelStateDictionary to add errors.
- prefix
- String
The prefix to use when looking up values in ModelStateDictionary.