Parameter.ConvertEmptyStringToNull 属性

定义

获取或设置一个值,该值指示在 Parameter 对象绑定到的值为 Empty 时是否应将其转换为 nullGets or sets a value indicating whether the value that the Parameter object is bound to should be converted to null if it is Empty.

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

属性值

Boolean

如果在 Parameter 绑定到的值为 Empty 时应将其转换为 true,则为 null;否则为 falsetrue if the value that the Parameter is bound to should be converted to null when it is Empty; otherwise, false. 默认值是 trueThe default value is true.

注解

如果 ConvertEmptyStringToNull 更改了参数的属性,则 OnParameterChanged 调用方法。If the ConvertEmptyStringToNull property of the parameter is changed, the OnParameterChanged method is called.

适用于