HostingHostBuilderExtensions.ConfigureHostOptions Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>) |
Agrega un delegado para configurar el HostOptions de .IHost |
ConfigureHostOptions(IHostBuilder, Action<HostOptions>) |
Agrega un delegado para configurar la HostOptions de la IHost instancia relacionada con th. |
ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)
Agrega un delegado para configurar el HostOptions de .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
Parámetros
- hostBuilder
- IHostBuilder
El objeto IHostBuilder que se va a configurar.
- configureOptions
- Action<HostBuilderContext,HostOptions>
El delegado para configurar HostOptions.
Devoluciones
La misma instancia de IHostBuilder para el encadenamiento.
Se aplica a
ConfigureHostOptions(IHostBuilder, Action<HostOptions>)
Agrega un delegado para configurar la HostOptions de la IHost instancia relacionada con 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
Parámetros
- hostBuilder
- IHostBuilder
El objeto IHostBuilder que se va a configurar.
- configureOptions
- Action<HostOptions>
El delegado para configurar HostOptions.
Devoluciones
La misma instancia de IHostBuilder para el encadenamiento.