共用方式為


CachedDataAnnotationsModelMetadata.ComputeConvertEmptyStringToNull 方法

定義

取得值,指出表單中回傳的空字串是否應該轉換成 Nothing。如果快取值,則會傳回現金值;否則會從模型中繼資料擷取值,並儲存在快取中。

protected override bool ComputeConvertEmptyStringToNull ();
override this.ComputeConvertEmptyStringToNull : unit -> bool
Protected Overrides Function ComputeConvertEmptyStringToNull () As Boolean

傳回

表示是否應該將表單中回傳的空字串轉換成 Nothing 的值。

適用於