ModelMetadata.GetDisplayName Method

Definition

Gets a display name for the model.

C#
public string GetDisplayName ();

Returns

The display name.

Remarks

GetDisplayName() will return the first of the following expressions which has a non-null value: DisplayName, Name, or ModelType.Name.

Applies to

Produkt Verzie
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0