HostingHostBuilderExtensions.ConfigureHostOptions Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>) |
Adiciona um delegado para configurar o HostOptionsIHostdo . |
ConfigureHostOptions(IHostBuilder, Action<HostOptions>) |
Adiciona um delegado para configurar o HostOptions da IHost instância relacionada a th. |
ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)
Adiciona um delegado para configurar o HostOptionsIHostdo .
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureHostOptions(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::Hosting::HostOptions ^> ^ configureOptions);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostOptions (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Hosting.HostOptions> configureOptions);
static member ConfigureHostOptions : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.Hosting.HostOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureHostOptions (hostBuilder As IHostBuilder, configureOptions As Action(Of HostBuilderContext, HostOptions)) As IHostBuilder
Parâmetros
- hostBuilder
- IHostBuilder
O IHostBuilder a ser configurado.
- configureOptions
- Action<HostBuilderContext,HostOptions>
O delegado para configurar o HostOptions.
Retornos
A mesma instância do IHostBuilder para encadeamento.
Aplica-se a
ConfigureHostOptions(IHostBuilder, Action<HostOptions>)
Adiciona um delegado para configurar o HostOptions da IHost instância relacionada a th.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureHostOptions(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Hosting::HostOptions ^> ^ configureOptions);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostOptions (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostOptions> configureOptions);
static member ConfigureHostOptions : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureHostOptions (hostBuilder As IHostBuilder, configureOptions As Action(Of HostOptions)) As IHostBuilder
Parâmetros
- hostBuilder
- IHostBuilder
O IHostBuilder a ser configurado.
- configureOptions
- Action<HostOptions>
O delegado para configurar o HostOptions.
Retornos
A mesma instância do IHostBuilder para encadeamento.