Condividi tramite


HostingHostBuilderExtensions.ConfigureHostOptions Metodo

Definizione

Overload

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Aggiunge un delegato per la configurazione dell'oggetto HostOptionsIHost.

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Aggiunge un delegato per la configurazione dell'istanza HostOptionsIHost correlata al th.

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs

Aggiunge un delegato per la configurazione dell'oggetto HostOptionsIHost.

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

Parametri

hostBuilder
IHostBuilder

Oggetto IHostBuilder da configurare.

configureOptions
Action<HostBuilderContext,HostOptions>

Delegato per la configurazione di HostOptions.

Restituisce

Stessa istanza di IHostBuilder per il concatenamento.

Si applica a

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs
Origine:
HostingHostBuilderExtensions.cs

Aggiunge un delegato per la configurazione dell'istanza HostOptionsIHost correlata al 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

Parametri

hostBuilder
IHostBuilder

Oggetto IHostBuilder da configurare.

configureOptions
Action<HostOptions>

Delegato per la configurazione di HostOptions.

Restituisce

Stessa istanza di IHostBuilder per il concatenamento.

Si applica a