Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ModelMetadata.GetDisplayName Method

Gets the display name for the model.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public string GetDisplayName()

Return Value

Type: System.String
The display name for the model.

If the DisplayName property is not null, the DisplayName property is returned. If the DisplayName property is null, and the PropertyName property is not null, the PropertyName property is returned. If the DisplayName property is null and the PropertyName property is null, the ModelType name is returned.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.