HostingExtensions.UseHost Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| Veri Akışı Adı | Description |
|---|---|
| UseHost(CommandLineConfiguration, Action<IHostBuilder>) | |
| UseHost(CommandLineConfiguration, Func<String[],IHostBuilder>, Action<IHostBuilder>) |
UseHost(CommandLineConfiguration, Action<IHostBuilder>)
- Kaynak:
- HostingExtensions.cs
public static System.CommandLine.CommandLineConfiguration UseHost(this System.CommandLine.CommandLineConfiguration config, Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = default);
static member UseHost : System.CommandLine.CommandLineConfiguration * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> System.CommandLine.CommandLineConfiguration
<Extension()>
Public Function UseHost (config As CommandLineConfiguration, Optional configureHost As Action(Of IHostBuilder) = Nothing) As CommandLineConfiguration
Parametreler
- config
- CommandLineConfiguration
- configureHost
- Action<IHostBuilder>
Döndürülenler
Şunlara uygulanır
UseHost(CommandLineConfiguration, Func<String[],IHostBuilder>, Action<IHostBuilder>)
- Kaynak:
- HostingExtensions.cs
public static System.CommandLine.CommandLineConfiguration UseHost(this System.CommandLine.CommandLineConfiguration config, Func<string[],Microsoft.Extensions.Hosting.IHostBuilder> hostBuilderFactory, Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = default);
static member UseHost : System.CommandLine.CommandLineConfiguration * Func<string[], Microsoft.Extensions.Hosting.IHostBuilder> * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> System.CommandLine.CommandLineConfiguration
<Extension()>
Public Function UseHost (config As CommandLineConfiguration, hostBuilderFactory As Func(Of String(), IHostBuilder), Optional configureHost As Action(Of IHostBuilder) = Nothing) As CommandLineConfiguration
Parametreler
- config
- CommandLineConfiguration
- hostBuilderFactory
- Func<String[],IHostBuilder>
- configureHost
- Action<IHostBuilder>