Bagikan melalui


HostingHostBuilderExtensions.ConfigureHostOptions Metode

Definisi

Overload

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Menambahkan delegasi untuk mengonfigurasi HostOptions dari IHost.

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Menambahkan delegasi untuk mengonfigurasi HostOptions instans yang IHost terkait dengan th.

ConfigureHostOptions(IHostBuilder, Action<HostBuilderContext,HostOptions>)

Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs

Menambahkan delegasi untuk mengonfigurasi HostOptions dari 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

Parameter

hostBuilder
IHostBuilder

untuk IHostBuilder mengonfigurasi.

configureOptions
Action<HostBuilderContext,HostOptions>

Delegasi untuk mengonfigurasi HostOptions.

Mengembalikan

Instans yang sama untuk penautan IHostBuilder .

Berlaku untuk

ConfigureHostOptions(IHostBuilder, Action<HostOptions>)

Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs
Sumber:
HostingHostBuilderExtensions.cs

Menambahkan delegasi untuk mengonfigurasi HostOptions instans yang IHost terkait dengan 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

Parameter

hostBuilder
IHostBuilder

untuk IHostBuilder mengonfigurasi.

configureOptions
Action<HostOptions>

Delegasi untuk mengonfigurasi HostOptions.

Mengembalikan

Instans yang sama untuk penautan IHostBuilder .

Berlaku untuk