Sdílet prostřednictvím


HostingHostBuilderExtensions.ConfigureHostOptions Metoda

Definice

Přetížení

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Přidá delegáta pro konfiguraci HostOptionsIHost.

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Přidá delegáta pro konfiguraci HostOptionsIHost.

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Zdroj:
HostingHostBuilderExtensions.cs
Zdroj:
HostingHostBuilderExtensions.cs
Zdroj:
HostingHostBuilderExtensions.cs

Přidá delegáta pro konfiguraci HostOptionsIHost.

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

Parametry

hostBuilder
IHostBuilder

Konfigurace IHostBuilder.

configureOptions
Action<HostBuilderContext,HostOptions>

Delegát pro konfiguraci HostOptions.

Návraty

Stejná instance IHostBuilder pro řetězení.

Platí pro

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Zdroj:
HostingHostBuilderExtensions.cs
Zdroj:
HostingHostBuilderExtensions.cs
Zdroj:
HostingHostBuilderExtensions.cs

Přidá delegáta pro konfiguraci HostOptionsIHost.

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

Parametry

hostBuilder
IHostBuilder

Konfigurace IHostBuilder.

configureOptions
Action<HostOptions>

Delegát pro konfiguraci HostOptions.

Návraty

Stejná instance IHostBuilder pro řetězení.

Platí pro