MvcCoreMvcCoreBuilderExtensions.AddJsonOptions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures JsonOptions for the specified builder
.
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddJsonOptions (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.JsonOptions> configure);
static member AddJsonOptions : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.JsonOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddJsonOptions (builder As IMvcCoreBuilder, configure As Action(Of JsonOptions)) As IMvcCoreBuilder
Parameters
- builder
- IMvcCoreBuilder
The IMvcBuilder.
- configure
- Action<JsonOptions>
An Action to configure the JsonOptions.
Returns
The IMvcBuilder.