HostingExtensions.UseHost Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UseHost(CommandLineBuilder, Action<IHostBuilder>) | |
UseHost(CommandLineBuilder, Func<String[],IHostBuilder>, Action<IHostBuilder>) |
UseHost(CommandLineBuilder, Action<IHostBuilder>)
public static System.CommandLine.Builder.CommandLineBuilder UseHost(this System.CommandLine.Builder.CommandLineBuilder builder, Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = default);
static member UseHost : System.CommandLine.Builder.CommandLineBuilder * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseHost (builder As CommandLineBuilder, Optional configureHost As Action(Of IHostBuilder) = Nothing) As CommandLineBuilder
Parameters
- builder
- CommandLineBuilder
- configureHost
- Action<IHostBuilder>
Returns
Applies to
UseHost(CommandLineBuilder, Func<String[],IHostBuilder>, Action<IHostBuilder>)
public static System.CommandLine.Builder.CommandLineBuilder UseHost(this System.CommandLine.Builder.CommandLineBuilder builder, Func<string[],Microsoft.Extensions.Hosting.IHostBuilder> hostBuilderFactory, Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = default);
static member UseHost : System.CommandLine.Builder.CommandLineBuilder * Func<string[], Microsoft.Extensions.Hosting.IHostBuilder> * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseHost (builder As CommandLineBuilder, hostBuilderFactory As Func(Of String(), IHostBuilder), Optional configureHost As Action(Of IHostBuilder) = Nothing) As CommandLineBuilder
Parameters
- builder
- CommandLineBuilder
- hostBuilderFactory
- Func<String[],IHostBuilder>
- configureHost
- Action<IHostBuilder>
Returns
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET