DynamicControl.ConvertEmptyStringToNull DynamicControl.ConvertEmptyStringToNull DynamicControl.ConvertEmptyStringToNull DynamicControl.ConvertEmptyStringToNull Property

定義

取得或設定值,表示在資料來源中更新資料欄位時,是否將空字串值 ("") 自動轉換為 null 值。Gets or sets a value that indicates whether empty string values ("") are automatically converted to null values when the data field is updated in the data source.

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

屬性值

如果空字串值會自動轉換為 null 值則為 true;否則為 falsetrue if empty string values are automatically converted to null values; otherwise, false. 預設為 falseThe default is false.

備註

資料來源控制項的Parameter.ConvertEmptyStringToNull物件也有一個名為的屬性。ParameterThe Parameter object of the data source control also has a property named Parameter.ConvertEmptyStringToNull. 這個屬性會執行相同的函式。This property performs the same function. 請確定這兩個屬性都已正確設定。Make sure that both properties are set appropriately.

適用於

另請參閱