Ler em inglês

Compartilhar via


HtmlHelper<TModel>.ViewData Property

Gets the strongly typed view data dictionary.

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

Syntax

public ViewDataDictionary<TModel> ViewData { get; }

Property Value

Type: System.Web.Mvc.ViewDataDictionary<TModel>
The strongly typed view data dictionary.

Remarks

The ViewDataDictionary<TModel> object contains the data that is required in order to render a strongly typed view.

See Also

Reference

HtmlHelper<TModel> Class

System.Web.Mvc Namespace