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 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>)
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>)
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.