This documentation is archived and is not being maintained.
ModelMetadata::ConvertEmptyStringToNull Property
Gets or sets a value that indicates whether empty strings that are posted back in forms should be converted to nullptr.
Namespace:
System.Web.Mvc Assembly:
System.Web.Mvc (in System.Web.Mvc.dll)
public:
virtual property bool ConvertEmptyStringToNull {
bool get ();
void set (bool value);
}
Property Value
Type:
System::Booleantrue if empty strings that are posted back in forms should be converted to nullptr; otherwise, false. The default value is true.