AutoGeneratedField.ConvertEmptyStringToNull 属性

定义

获取或设置一个值,该值指示在从数据源检索字段值时,是否将空字符串 ("") 值转换为 nullGets or sets a value indicating whether empty string ("") values are converted to null when the field values are retrieved from the data source.

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

属性值

Boolean

始终返回 trueAlways returns true.

例外

尝试对此属性进行设置。An attempt is made to set this property.

注解

有时,字段的值是数据源中 ( "" ) 的空字符串。Sometimes a field's value is an empty string ("") in the data source. ConvertEmptyStringToNull属性用于指示 null 在中显示空字符串值之前是否将这些值转换为 AutoGeneratedFieldThe ConvertEmptyStringToNull property is used to indicate whether empty string values are converted to null before being displayed in an AutoGeneratedField.

备注

此版本的属性已实现为总是返回 trueThis version of the property has been implemented to always return true. 不能设置此属性。It is not possible to set this property.

适用于

另请参阅