Share via


CachedDataAnnotationsMetadataAttributes.DisplayName Property

Gets the display name.

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

Syntax

'Declaration
Public Property DisplayName As DisplayNameAttribute 
    Get 
    Protected Set
'Usage
Dim instance As CachedDataAnnotationsMetadataAttributes 
Dim value As DisplayNameAttribute 

value = instance.DisplayName

instance.DisplayName = value
public DisplayNameAttribute DisplayName { get; protected set; }
public:
property DisplayNameAttribute^ DisplayName {
    DisplayNameAttribute^ get ();
    protected: void set (DisplayNameAttribute^ value);
}
member DisplayName : DisplayNameAttribute with get, set
function get DisplayName () : DisplayNameAttribute 
protected function set DisplayName (value : DisplayNameAttribute)

Property Value

Type: System.ComponentModel.DisplayNameAttribute
The display name.

See Also

Reference

CachedDataAnnotationsMetadataAttributes Class

System.Web.Mvc Namespace