Partager via


HostingHostBuilderExtensions.ConfigureHostOptions Méthode

Définition

Surcharges

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Ajoute un délégué pour la configuration de l'HostOptions du IHost.

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Ajoute un délégué pour la configuration de l'HostOptions du IHost.

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Ajoute un délégué pour la configuration de l'HostOptions du IHost.

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

Paramètres

hostBuilder
IHostBuilder

La IHostBuilder à configurer.

configureOptions
Action<HostBuilderContext,HostOptions>

Délégué pour la configuration du HostOptions.

Retours

La même instance du IHostBuilder pour le chaînage.

S’applique à

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Ajoute un délégué pour la configuration de l'HostOptions du IHost.

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

Paramètres

hostBuilder
IHostBuilder

La IHostBuilder à configurer.

configureOptions
Action<HostOptions>

Délégué pour la configuration du HostOptions.

Retours

La même instance du IHostBuilder pour le chaînage.

S’applique à