HostingAbstractionsWebHostBuilderExtensions.SuppressStatusMessages Method
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.
Specify if startup status messages should be suppressed.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ SuppressStatusMessages(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, bool suppressStatusMessages);
C#
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder SuppressStatusMessages (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, bool suppressStatusMessages);
static member SuppressStatusMessages : Microsoft.AspNetCore.Hosting.IWebHostBuilder * bool -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function SuppressStatusMessages (hostBuilder As IWebHostBuilder, suppressStatusMessages As Boolean) As IWebHostBuilder
- hostBuilder
- IWebHostBuilder
The IWebHostBuilder to configure.
- suppressStatusMessages
- Boolean
true
to suppress writing of hosting startup status messages; otherwise false
.
The IWebHostBuilder.
Produk | Versi |
---|---|
ASP.NET Core | 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |