JsonPatchDocument<TModel>.ApplyTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ApplyTo(TModel) |
套用此 JsonPatchDocument |
ApplyTo(TModel, IObjectAdapter) |
套用此 JsonPatchDocument |
ApplyTo(TModel, Action<JsonPatchError>) |
套用此 JsonPatchDocument |
ApplyTo(TModel, IObjectAdapter, Action<JsonPatchError>) |
套用此 JsonPatchDocument |
ApplyTo(TModel)
套用此 JsonPatchDocument
public:
void ApplyTo(TModel objectToApplyTo);
public void ApplyTo (TModel objectToApplyTo);
member this.ApplyTo : 'Model -> unit
Public Sub ApplyTo (objectToApplyTo As TModel)
參數
- objectToApplyTo
- TModel
要套用 JsonPatchDocument 的物件
適用於
ApplyTo(TModel, IObjectAdapter)
套用此 JsonPatchDocument
public:
void ApplyTo(TModel objectToApplyTo, Microsoft::AspNetCore::JsonPatch::Adapters::IObjectAdapter ^ adapter);
public void ApplyTo (TModel objectToApplyTo, Microsoft.AspNetCore.JsonPatch.Adapters.IObjectAdapter adapter);
member this.ApplyTo : 'Model * Microsoft.AspNetCore.JsonPatch.Adapters.IObjectAdapter -> unit
Public Sub ApplyTo (objectToApplyTo As TModel, adapter As IObjectAdapter)
參數
- objectToApplyTo
- TModel
要套用 JsonPatchDocument 的物件
- adapter
- IObjectAdapter
套用時要使用的 IObjectAdapter 實例
適用於
ApplyTo(TModel, Action<JsonPatchError>)
套用此 JsonPatchDocument
public:
void ApplyTo(TModel objectToApplyTo, Action<Microsoft::AspNetCore::JsonPatch::JsonPatchError ^> ^ logErrorAction);
public void ApplyTo (TModel objectToApplyTo, Action<Microsoft.AspNetCore.JsonPatch.JsonPatchError> logErrorAction);
member this.ApplyTo : 'Model * Action<Microsoft.AspNetCore.JsonPatch.JsonPatchError> -> unit
Public Sub ApplyTo (objectToApplyTo As TModel, logErrorAction As Action(Of JsonPatchError))
參數
- objectToApplyTo
- TModel
要套用 JsonPatchDocument 的物件
- logErrorAction
- Action<JsonPatchError>
記錄錯誤的動作
適用於
ApplyTo(TModel, IObjectAdapter, Action<JsonPatchError>)
套用此 JsonPatchDocument
public:
void ApplyTo(TModel objectToApplyTo, Microsoft::AspNetCore::JsonPatch::Adapters::IObjectAdapter ^ adapter, Action<Microsoft::AspNetCore::JsonPatch::JsonPatchError ^> ^ logErrorAction);
public void ApplyTo (TModel objectToApplyTo, Microsoft.AspNetCore.JsonPatch.Adapters.IObjectAdapter adapter, Action<Microsoft.AspNetCore.JsonPatch.JsonPatchError> logErrorAction);
member this.ApplyTo : 'Model * Microsoft.AspNetCore.JsonPatch.Adapters.IObjectAdapter * Action<Microsoft.AspNetCore.JsonPatch.JsonPatchError> -> unit
Public Sub ApplyTo (objectToApplyTo As TModel, adapter As IObjectAdapter, logErrorAction As Action(Of JsonPatchError))
參數
- objectToApplyTo
- TModel
要套用 JsonPatchDocument 的物件
- adapter
- IObjectAdapter
套用時要使用的 IObjectAdapter 實例
- logErrorAction
- Action<JsonPatchError>
記錄錯誤的動作