Argument.IsRequired 属性

定义

指示是否必须定义 BaseProperty 指向的 Property,以使拥有此参数的 BaseProperty 的定义有意义。Indicates whether the BaseProperty pointed to by Property must be defined so that the definition of the BaseProperty that owns this argument makes sense.

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

属性值

true如果必须定义 BaseProperty, 则为;否则为falsetrue if the BaseProperty must be defined; otherwise, false.

注解

此字段是可选的, 默认情况false下将设置为。This field is optional and is set to false by default.

适用于