Aracılığıyla paylaş


HostingHostBuilderExtensions.ConfigureHostOptions Yöntem

Tanım

Aşırı Yüklemeler

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

IHost HostOptions yapılandırmak için bir temsilci ekler.

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

IHost HostOptions yapılandırmak için bir temsilci ekler.

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Kaynak:
HostingHostBuilderExtensions.cs
Kaynak:
HostingHostBuilderExtensions.cs

IHost HostOptions yapılandırmak için bir temsilci ekler.

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

Parametreler

hostBuilder
IHostBuilder

Yapılandırılan IHostBuilder.

configureOptions
Action<HostBuilderContext,HostOptions>

HostOptionsyapılandırmak için temsilci.

Döndürülenler

Zincirleme için IHostBuilder aynı örneği.

Şunlara uygulanır

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Kaynak:
HostingHostBuilderExtensions.cs
Kaynak:
HostingHostBuilderExtensions.cs

IHost HostOptions yapılandırmak için bir temsilci ekler.

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

Parametreler

hostBuilder
IHostBuilder

Yapılandırılan IHostBuilder.

configureOptions
Action<HostOptions>

HostOptionsyapılandırmak için temsilci.

Döndürülenler

Zincirleme için IHostBuilder aynı örneği.

Şunlara uygulanır