Option.Required 属性

定义

指示调用其父命令时是否需要该选项。

public:
 property bool Required { bool get(); void set(bool value); };
public bool Required { get; set; }
member this.Required : bool with get, set
Public Property Required As Boolean

属性值

注解

当需要某个选项且其父命令在没有选项的情况下调用时,将产生错误。

适用于