HostingAbstractionsWebHostBuilderExtensions.SuppressStatusMessages Method

Definition

Specify if startup status messages should be suppressed.

C#
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder SuppressStatusMessages (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, bool suppressStatusMessages);

Parameters

hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

suppressStatusMessages
Boolean

true to suppress writing of hosting startup status messages; otherwise false.

Returns

The IWebHostBuilder.

Applies to

Produk Versi
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0