Share via


CachedDataAnnotationsMetadataAttributes.DisplayFormat Property

Gets or sets the metadata display format attribute.

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.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 metadata display format attribute.

See Also

Reference

CachedDataAnnotationsMetadataAttributes Class

System.Web.Http.Metadata.Providers Namespace