HostingHostBuilderExtensions.ConfigureHostOptions Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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>)
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>)
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.