ModelMetadata.GetDisplayName Method ()

.NET Framework (current version)
 

Returns text to display as the name of the model in UI.

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

public string GetDisplayName()

Return Value

Type: System.String

Text to display as the name of the model in UI. The default is the value of the DisplayName property if that value is not null. If the DisplayName property is null, the default value is the value of the PropertyName property. If the PropertyName property is null, the default value comes from the Name property of the ModelType property.

.NET Framework
Available since 4.5
Return to top
Show: