HostingAbstractionsWebHostBuilderExtensions.SuppressStatusMessages 方法

定义

指定是否应取消启动状态消息。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ SuppressStatusMessages(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, bool suppressStatusMessages);
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

要配置的 IWebHostBuilder

suppressStatusMessages
Boolean

true 以禁止写入承载启动状态消息;否则为 false

返回

IWebHostBuilder

适用于