ModelMetadata.DisplayFormatString Property
Gets or sets the display format string for the model.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public virtual string DisplayFormatString { get; set; }
public:
property String^ DisplayFormatString {
virtual String^ get();
virtual void set(String^ value);
}
abstract DisplayFormatString : string with get, set
override DisplayFormatString : string with get, set
Public Overridable Property DisplayFormatString As String
Property Value
Type: System.String
The display format string for the model.
Remarks
This property is used when ASP.NET displays the model value in a MVC template. The default value is null.
See Also
ModelMetadata Class
System.Web.Mvc Namespace
Return to top