ConvertEmptyStringToNull Property

ModelMetadata.ConvertEmptyStringToNull Property

.NET Framework (current version)
 

Gets or sets a value that determines whether empty strings that are submitted in forms should be converted to null.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public virtual bool ConvertEmptyStringToNull { get; set; }

Property Value

Type: System.Boolean

true if empty strings should be converted to null; otherwise, false. The default value is true.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft