ObjectAdapter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ObjectAdapter(IContractResolver, Action<JsonPatchError>) |
初始化 ObjectAdapter 的新執行個體。 |
ObjectAdapter(IContractResolver, Action<JsonPatchError>, IAdapterFactory) |
初始化 ObjectAdapter 的新執行個體。 |
ObjectAdapter(IContractResolver, Action<JsonPatchError>)
初始化 ObjectAdapter 的新執行個體。
public:
ObjectAdapter(Newtonsoft::Json::Serialization::IContractResolver ^ contractResolver, Action<Microsoft::AspNetCore::JsonPatch::JsonPatchError ^> ^ logErrorAction);
public ObjectAdapter (Newtonsoft.Json.Serialization.IContractResolver contractResolver, Action<Microsoft.AspNetCore.JsonPatch.JsonPatchError> logErrorAction);
new Microsoft.AspNetCore.JsonPatch.Adapters.ObjectAdapter : Newtonsoft.Json.Serialization.IContractResolver * Action<Microsoft.AspNetCore.JsonPatch.JsonPatchError> -> Microsoft.AspNetCore.JsonPatch.Adapters.ObjectAdapter
Public Sub New (contractResolver As IContractResolver, logErrorAction As Action(Of JsonPatchError))
參數
- contractResolver
- Newtonsoft.Json.Serialization.IContractResolver
Newtonsoft.Json.Serialization.IContractResolver。
- logErrorAction
- Action<JsonPatchError>
用於記錄 JsonPatchError 的 Action 。
適用於
ObjectAdapter(IContractResolver, Action<JsonPatchError>, IAdapterFactory)
初始化 ObjectAdapter 的新執行個體。
public:
ObjectAdapter(Newtonsoft::Json::Serialization::IContractResolver ^ contractResolver, Action<Microsoft::AspNetCore::JsonPatch::JsonPatchError ^> ^ logErrorAction, Microsoft::AspNetCore::JsonPatch::Adapters::IAdapterFactory ^ adapterFactory);
public ObjectAdapter (Newtonsoft.Json.Serialization.IContractResolver contractResolver, Action<Microsoft.AspNetCore.JsonPatch.JsonPatchError> logErrorAction, Microsoft.AspNetCore.JsonPatch.Adapters.IAdapterFactory adapterFactory);
new Microsoft.AspNetCore.JsonPatch.Adapters.ObjectAdapter : Newtonsoft.Json.Serialization.IContractResolver * Action<Microsoft.AspNetCore.JsonPatch.JsonPatchError> * Microsoft.AspNetCore.JsonPatch.Adapters.IAdapterFactory -> Microsoft.AspNetCore.JsonPatch.Adapters.ObjectAdapter
Public Sub New (contractResolver As IContractResolver, logErrorAction As Action(Of JsonPatchError), adapterFactory As IAdapterFactory)
參數
- contractResolver
- Newtonsoft.Json.Serialization.IContractResolver
Newtonsoft.Json.Serialization.IContractResolver。
- logErrorAction
- Action<JsonPatchError>
用於記錄 JsonPatchError 的 Action 。
- adapterFactory
- IAdapterFactory
建立 IAdapterFactory 配接器時要使用的 。