語言

Argument<T>.CustomParser 屬性

定義

取得或設定自訂參數解析器。

public:
 property Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ CustomParser { Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ get(); void set(Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ value); };
public Func<System.CommandLine.Parsing.ArgumentResult,T?>? CustomParser { get; set; }
member this.CustomParser : Func<System.CommandLine.Parsing.ArgumentResult, 'T> with get, set
Public Property CustomParser As Func(Of ArgumentResult, T)

屬性值

備註

當某個參數提供解析輸入時,會呼叫自訂解析器。 同一實例可設定為 DefaultValueFactory;此時,當未提供輸入時,代理也會被呼叫。

適用於