Argument.Validators 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供参数验证程序的列表。 验证程序可用于根据用户输入提供自定义错误。
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))