Partager via


ModelMetadata.NullDisplayText Property

Gets or sets the string to display for null values.

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

Syntax

'Declaration
Public Overridable Property NullDisplayText As String
    Get
    Set
public virtual string NullDisplayText { get; set; }
public:
virtual property String^ NullDisplayText {
    String^ get ();
    void set (String^ value);
}

Property Value

Type: System.String
The string to display for null values.

See Also

Reference

ModelMetadata Class

System.Web.Mvc Namespace