Partager via


HostingHostBuilderExtensions.ConfigureHostOptions Méthode

Définition

Surcharges

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Ajoute un délégué pour configurer le HostOptions du IHost.

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Ajoute un délégué pour configurer le HostOptionsIHost du instance lié à th.

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Ajoute un délégué pour configurer le 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

IHostBuilder à configurer.

configureOptions
Action<HostBuilderContext,HostOptions>

Délégué permettant de configurer la HostOptions.

Retours

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

S’applique à

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

Ajoute un délégué pour configurer le HostOptionsIHost du instance lié à 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

Paramètres

hostBuilder
IHostBuilder

IHostBuilder à configurer.

configureOptions
Action<HostOptions>

Délégué permettant de configurer la HostOptions.

Retours

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

S’applique à