Compartilhar via


ModelMetadata.ShortDisplayName Property

Gets or sets a short display name.

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

Syntax

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

Property Value

Type: System.String
The short display name.

Remarks

The short display name can be used in a tooltip or in other display contexts such as the title of tabular list views where the complete display name might not fit. For example, in MVC, this name is used in tables where the columns are not wide enough to display the complete field name. If this field is null reference (Nothing in Visual Basic), DisplayName should be used.

See Also

Reference

ModelMetadata Class

System.Web.Mvc Namespace