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

屬性值

備註

當需要選項,且其父命令未叫用時,會產生錯誤。

適用於