Прочетете на английски Редактиране

Споделяне чрез


Option.IsRequired Property

Definition

Indicates whether the option is required when its parent command is invoked.

C#
public bool IsRequired { get; set; }

Property Value

Remarks

When an option is required and its parent command is invoked without it, an error results.

Applies to

Продукт Версии
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)