共用方式為


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

適用於