共用方式為


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)

來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
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)

來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
JsonPatchExtensions.cs
來源:
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 查閱值時要使用的前置詞。

適用於