次の方法で共有


CommandLineBuilderExtensions.UseHelpBuilder<TBuilder> メソッド

定義

ヘルプが HelpBuilder 要求されたときにヘルプ出力の書式設定に使用する を指定します。

public:
generic <typename TBuilder>
 where TBuilder : System::CommandLine::Builder::CommandLineBuilder[System::Runtime::CompilerServices::Extension]
 static TBuilder UseHelpBuilder(TBuilder builder, Func<System::CommandLine::Binding::BindingContext ^, System::CommandLine::Help::HelpBuilder ^> ^ getHelpBuilder);
public static TBuilder UseHelpBuilder<TBuilder> (this TBuilder builder, Func<System.CommandLine.Binding.BindingContext,System.CommandLine.Help.HelpBuilder> getHelpBuilder) where TBuilder : System.CommandLine.Builder.CommandLineBuilder;
static member UseHelpBuilder : 'Builder * Func<System.CommandLine.Binding.BindingContext, System.CommandLine.Help.HelpBuilder> -> 'Builder (requires 'Builder :> System.CommandLine.Builder.CommandLineBuilder)
<Extension()>
Public Function UseHelpBuilder(Of TBuilder As CommandLineBuilder) (builder As TBuilder, getHelpBuilder As Func(Of BindingContext, HelpBuilder)) As TBuilder

型パラメーター

TBuilder

パラメーター

builder
TBuilder

コマンド ライン ビルダー。

getHelpBuilder
Func<BindingContext,HelpBuilder>

のインスタンスを返すデリゲート HelpBuilder

戻り値

TBuilder

の同じインスタンス CommandLineBuilder

適用対象