اقرأ باللغة الإنجليزية

مشاركة عبر


MvcJsonOptions Class

Definition

Provides programmatic configuration for JSON in the MVC framework.

C#
public class MvcJsonOptions
C#
public class MvcJsonOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.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

Extension Methods

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2