JsonPatchExtensions.ApplyTo 方法

定义

重载

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

对 对象应用 JSON 修补操作,并在 中 ModelStateDictionary记录错误。

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

对 对象应用 JSON 修补操作,并在 中 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

对 对象应用 JSON 修补操作,并在 中 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)

类型参数

T

参数

objectToApplyTo
T

对其应用的 JsonPatchDocument<TModel> 实体。

modelState
ModelStateDictionary

ModelStateDictionary要添加错误的 。

适用于

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

对 对象应用 JSON 修补操作,并在 中 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)

类型参数

T

参数

objectToApplyTo
T

对其应用的 JsonPatchDocument<TModel> 实体。

modelState
ModelStateDictionary

ModelStateDictionary要添加错误的 。

prefix
String

在 中 ModelStateDictionary查找值时要使用的前缀。

适用于