HostApplicationBuilderSettings.DisableDefaults Property

Definition

Gets or sets a value that specifies whether preconfigured default settings should be used to configure the HostApplicationBuilder instance.

public:
 property bool DisableDefaults { bool get(); void set(bool value); };
public bool DisableDefaults { get; set; }
member this.DisableDefaults : bool with get, set
Public Property DisableDefaults As Boolean

Property Value

false to configure the HostApplicationBuilder instance with preconfigured default settings; true to disable the use of default settings.

Remarks

Setting this property to false has a similar effect to calling ConfigureDefaults(IHostBuilder, String[]).

The following defaults are applied to the IHostBuilder:

Applies to