MvcJsonOptions 類別

定義

提供 MVC 架構中 JSON 的程式設計設定。

public ref class MvcJsonOptions
public ref class MvcJsonOptions : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Infrastructure::ICompatibilitySwitch ^>
public class MvcJsonOptions
public class MvcJsonOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
type MvcJsonOptions = class
type MvcJsonOptions = class
    interface seq<ICompatibilitySwitch>
    interface IEnumerable
Public Class MvcJsonOptions
Public Class MvcJsonOptions
Implements IEnumerable(Of ICompatibilitySwitch)
繼承
MvcJsonOptions
實作

建構函式

MvcJsonOptions()

建立 MvcJsonOptions 的新執行個體。

屬性

AllowInputFormatterExceptionMessages

取得或設定旗標,以判斷 是否將 來自 JsonInputFormatter JSON 還原序列化的錯誤訊息新增至 ModelStateDictionary 。 預設值為 false ,表示將改用泛型錯誤訊息。

SerializerSettings

Newtonsoft.Json.JsonSerializerSettings取得這個應用程式所使用的 。

明確介面實作

IEnumerable.GetEnumerator()

提供 MVC 架構中 JSON 的程式設計設定。

IEnumerable<ICompatibilitySwitch>.GetEnumerator()

提供 MVC 架構中 JSON 的程式設計設定。

擴充方法

UseCamelCasing(MvcJsonOptions, Boolean)

提供 MVC 架構中 JSON 的程式設計設定。

UseMemberCasing(MvcJsonOptions)

提供 MVC 架構中 JSON 的程式設計設定。

適用於