NewtonsoftJsonPatchInputFormatter 類別

定義

適用于 JSON 修補程式的 (TextInputFormatter 應用程式/json-patch+json) 內容。

public ref class NewtonsoftJsonPatchInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::NewtonsoftJsonInputFormatter
public class NewtonsoftJsonPatchInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonInputFormatter
type NewtonsoftJsonPatchInputFormatter = class
    inherit NewtonsoftJsonInputFormatter
Public Class NewtonsoftJsonPatchInputFormatter
Inherits NewtonsoftJsonInputFormatter
繼承

建構函式

NewtonsoftJsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcNewtonsoftJsonOptions)

初始化新的 NewtonsoftJsonPatchInputFormatter 執行個體。

屬性

ExceptionPolicy

取得旗標,指出主體模型系結器是否應該處理所有例外狀況。 如果處理例外狀況,主體模型系結器會將例外狀況轉換成模型狀態錯誤,否則允許傳播例外狀況。

SerializerSettings

Newtonsoft.Json.JsonSerializerSettings取得用來設定 的 Newtonsoft.Json.JsonSerializer

(繼承來源 NewtonsoftJsonInputFormatter)
SupportedEncodings

取得這個 TextInputFormatter 所支援之字元編碼的可變動集合。 讀取資料時會使用編碼方式。

(繼承來源 TextInputFormatter)
SupportedMediaTypes

取得這個 InputFormatter 所支援之媒體類型專案的可變動集合。

(繼承來源 InputFormatter)

方法

CanRead(InputFormatterContext)

判斷這 IInputFormatter 是否可以還原序列化 的 ModelType 物件 context

CanReadType(Type)

判斷這 InputFormatter 是否可以還原序列化指定 type 的物件。

(繼承來源 InputFormatter)
CreateJsonSerializer()

在還原序列化期間呼叫 以取得 Newtonsoft.Json.JsonSerializer 。 傳遞的格式器內容可讓您建立內容特定的序列化程式。

(繼承來源 NewtonsoftJsonInputFormatter)
CreateJsonSerializer(InputFormatterContext)

在還原序列化期間呼叫 以取得 Newtonsoft.Json.JsonSerializer 。 傳遞的格式器內容可讓您建立內容特定的序列化程式。

(繼承來源 NewtonsoftJsonInputFormatter)
GetDefaultValueForType(Type)

取得指定型別的預設值。 當本文不包含任何內容時,用來傳回預設值。

(繼承來源 InputFormatter)
GetSupportedContentTypes(String, Type)

取得 和 支援的內容類型 IInputFormatterobjectTypecontentType 篩選清單。

(繼承來源 InputFormatter)
ReadAsync(InputFormatterContext)

從要求本文讀取 物件。

(繼承來源 InputFormatter)
ReadRequestBodyAsync(InputFormatterContext)

從要求本文讀取 物件。

(繼承來源 TextInputFormatter)
ReadRequestBodyAsync(InputFormatterContext, Encoding)

從要求本文讀取 物件。

ReleaseJsonSerializer(JsonSerializer)

釋放 serializer 執行個體。

(繼承來源 NewtonsoftJsonInputFormatter)
SelectCharacterEncoding(InputFormatterContext)

Encoding根據 context 的字元集傳回 。

(繼承來源 TextInputFormatter)

適用於