RuntimeArgument.IsRequired 属性

定义

获取一个值,该值指示是否需要将 RuntimeArgument 绑定到一个值。Gets a value that indicates whether the RuntimeArgument is required to be bound to a value.

public:
 property bool IsRequired { bool get(); };
public bool IsRequired { get; }
member this.IsRequired : bool
Public ReadOnly Property IsRequired As Boolean

属性值

Boolean

如果需要将 RuntimeArgument 绑定到一个值,则为 true;否则为 falsetrue if the RuntimeArgument is required to be bound to a value; otherwise, false.

注解

如果需要某个自变量,但其未绑定到一个值,则当包含的活动准备执行时,会引发 ValidationException,除非使用了重载组并且绑定了某个重载组的必需自变量。If an argument is required and not bound to a value a ValidationException is thrown when the containing activity is prepared for execution, unless overload groups are used and the required arguments of an overload group are bound. 有关详细信息,请参阅 OverloadGroupNamesFor more information, see OverloadGroupNames.

适用于