Freigeben über


HostingHostBuilderExtensions.ConfigureHostOptions Methode

Definition

Überlädt

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Fügt einen Delegat zum Konfigurieren der HostOptions des IHosthinzu.

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Fügt einen Delegat zum Konfigurieren der HostOptions des IHosthinzu.

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Quelle:
HostingHostBuilderExtensions.cs
Quelle:
HostingHostBuilderExtensions.cs
Quelle:
HostingHostBuilderExtensions.cs

Fügt einen Delegat zum Konfigurieren der HostOptions des IHosthinzu.

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

Parameter

hostBuilder
IHostBuilder

Die zu konfigurierende IHostBuilder.

configureOptions
Action<HostBuilderContext,HostOptions>

Der Delegat zum Konfigurieren der HostOptions.

Gibt zurück

Dieselbe Instanz des IHostBuilder für die Verkettung.

Gilt für:

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Quelle:
HostingHostBuilderExtensions.cs
Quelle:
HostingHostBuilderExtensions.cs
Quelle:
HostingHostBuilderExtensions.cs

Fügt einen Delegat zum Konfigurieren der HostOptions des IHosthinzu.

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

Parameter

hostBuilder
IHostBuilder

Die zu konfigurierende IHostBuilder.

configureOptions
Action<HostOptions>

Der Delegat zum Konfigurieren der HostOptions.

Gibt zurück

Dieselbe Instanz des IHostBuilder für die Verkettung.

Gilt für: