.NET Framework Class Library
ViewDataDictionary<TModel>.ModelMetadata Property
Gets or sets information about the model.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic
Public Overrides Property ModelMetadata As ModelMetadata Get Set
C#
public override ModelMetadata ModelMetadata { get; set; }
Visual C++
public: virtual property ModelMetadata^ ModelMetadata { ModelMetadata^ get () override; void set (ModelMetadata^ value) override; }
Remarks
This property contains information about the model, such as the model type, data type, description, display format, and display name.
See Also