CachedDataAnnotationsModelMetadata.ComputeConvertEmptyStringToNull 方法

定义

获取一个值,该值指示是否应将表单中回发的空字符串转换为 Nothing。如果缓存该值,则返回兑现的值;否则,该值将从模型元数据中检索并存储在缓存中。

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

返回

一个值,该值指示在窗体中回发的空字符串是否应转换为“Nothing”。

适用于