MvcJsonOptions Klasa

Definicja

Zapewnia konfigurację programową dla formatu JSON w strukturze MVC.

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)
Dziedziczenie
MvcJsonOptions
Implementuje

Konstruktory

MvcJsonOptions()

Tworzy nowe wystąpienie klasy MvcJsonOptions.

Właściwości

AllowInputFormatterExceptionMessages

Pobiera lub ustawia flagę w celu określenia, czy komunikaty o błędach z deserializacji JsonInputFormatter JSON przez element zostaną dodane do elementu ModelStateDictionary. Wartość domyślna to false, co oznacza, że zostanie użyty ogólny komunikat o błędzie.

SerializerSettings

Pobiera te Newtonsoft.Json.JsonSerializerSettings dane, które są używane przez tę aplikację.

Jawne implementacje interfejsu

IEnumerable.GetEnumerator()

Zapewnia konfigurację programową dla formatu JSON w strukturze MVC.

IEnumerable<ICompatibilitySwitch>.GetEnumerator()

Zapewnia konfigurację programową dla formatu JSON w strukturze MVC.

Metody rozszerzania

UseCamelCasing(MvcJsonOptions, Boolean)

Zapewnia konfigurację programową dla formatu JSON w strukturze MVC.

UseMemberCasing(MvcJsonOptions)

Zapewnia konfigurację programową dla formatu JSON w strukturze MVC.

Dotyczy