MvcJsonOptions Class

Definition

Provides programmatic configuration for JSON in the MVC framework.

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)
Inheritance
MvcJsonOptions
Implements

Constructors

MvcJsonOptions()

Creates a new instance of MvcJsonOptions.

Properties

AllowInputFormatterExceptionMessages

Gets or sets a flag to determine whether error messages from JSON deserialization by the JsonInputFormatter will be added to the ModelStateDictionary. The default value is false, meaning that a generic error message will be used instead.

SerializerSettings

Gets the Newtonsoft.Json.JsonSerializerSettings that are used by this application.

Explicit Interface Implementations

IEnumerable.GetEnumerator()
IEnumerable<ICompatibilitySwitch>.GetEnumerator()

Extension Methods

UseCamelCasing(MvcJsonOptions, Boolean)
UseMemberCasing(MvcJsonOptions)

Applies to