DataAnnotationsModelMetadata.GetSimpleDisplayText Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns text to display for the model when the model represents a complex object.

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

protected override string GetSimpleDisplayText()

Return Value

Type: System.String

The text to display for a complex object. If there is a DisplayColumnAttribute attribute for the model, the default is the name of the display column. Otherwise the default is determined by calling the GetSimpleDisplayText method of the ModelMetadata base class.

.NET Framework
Available since 4.5
Return to top
Show: