DisplayAttribute.GetPrompt Method ()
.NET Framework (current version)
Returns the value of the Prompt property.
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
Return Value
Type: System.StringGets the localized string for the Prompt property if the ResourceType property has been specified and if the Prompt property represents a resource key; otherwise, the non-localized value of the Prompt property.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Show: