ViewDataDictionary.ModelMetadata Property

Gets or sets information about the model.

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

Syntax

'Declaration
Public Overridable Property ModelMetadata As ModelMetadata
    Get
    Set
public virtual ModelMetadata ModelMetadata { get; set; }
public:
virtual property ModelMetadata^ ModelMetadata {
    ModelMetadata^ get ();
    void set (ModelMetadata^ value);
}

Property Value

Type: System.Web.Mvc.ModelMetadata
Information about the model.

Remarks

This property contains information such as the model type, data type, description, display format, and display name.

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace