Share via


Option.IsRequired 属性

定义

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

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

属性值

注解

如果需要某个选项,并且调用其父命令而不调用它,则会导致错误。

适用于