ModelMetadata::GetDisplayName Method
Gets the display name for the model.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
If the DisplayName property is not nullptr, the DisplayName property is returned. If the DisplayName property is nullptr, and the PropertyName property is not nullptr, the PropertyName property is returned. If the DisplayName property is null and the PropertyName property is nullptr, the ModelType name is returned.
Show: