Compartilhar via


HostingAbstractionsWebHostBuilderExtensions.SuppressStatusMessages Método

Definição

Especifique se as mensagens de status de inicialização devem ser suprimidas.

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

Parâmetros

hostBuilder
IWebHostBuilder

O IWebHostBuilder a ser configurado.

suppressStatusMessages
Boolean

truepara suprimir a gravação de mensagens status de inicialização de hospedagem; caso contráriofalse, .

Retornos

O IWebHostBuilder.

Aplica-se a