Share via


CachedDataAnnotationsMetadataAttributes.DisplayFormat Property

Gets the display format.

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

Syntax

'Declaration
Public Property DisplayFormat As DisplayFormatAttribute 
    Get 
    Protected Set
'Usage
Dim instance As CachedDataAnnotationsMetadataAttributes 
Dim value As DisplayFormatAttribute 

value = instance.DisplayFormat

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

Property Value

Type: System.ComponentModel.DataAnnotations.DisplayFormatAttribute
The display format.

See Also

Reference

CachedDataAnnotationsMetadataAttributes Class

System.Web.Mvc Namespace