语言

Argument.Validators 属性

定义

提供参数验证程序的列表。 验证程序可用于根据用户输入提供自定义错误。

public:
 property System::Collections::Generic::List<Action<System::CommandLine::Parsing::ArgumentResult ^> ^> ^ Validators { System::Collections::Generic::List<Action<System::CommandLine::Parsing::ArgumentResult ^> ^> ^ get(); };
public System.Collections.Generic.List<Action<System.CommandLine.Parsing.ArgumentResult>> Validators { get; }
member this.Validators : System.Collections.Generic.List<Action<System.CommandLine.Parsing.ArgumentResult>>
Public ReadOnly Property Validators As List(Of Action(Of ArgumentResult))

属性值

适用于