共用方式為


MvcCoreMvcCoreBuilderExtensions.AddJsonOptions 方法

定義

為指定的 builder 設定 JsonOptions

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

參數

configure
Action<JsonOptions>

設定 JsonOptionsAction

傳回

IMvcBuilder

適用於