Partilhar via


HostingHostBuilderExtensions.ConfigureHostOptions Método

Definição

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>)

Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs

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>)

Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs
Origem:
HostingHostBuilderExtensions.cs

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.

Aplica-se a