Share via


WebViewPage<TModel>.ViewData Property

Definition

Gets or sets a dictionary that contains data to pass between the controller and the view.

public System.Web.Mvc.ViewDataDictionary<TModel> ViewData { get; set; }
member this.ViewData : System.Web.Mvc.ViewDataDictionary<'Model> with get, set
Public Property ViewData As ViewDataDictionary(Of TModel)

Property Value

A dictionary that contains data to pass between the controller and the view.

Applies to