Freigeben über


ViewUserControl<TModel>.ViewData Property

Gets or sets the view data.

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

Syntax

'Declaration
Public Property ViewData As ViewDataDictionary(Of TModel)
    Get
    Set
public ViewDataDictionary<TModel> ViewData { get; set; }
public:
property ViewDataDictionary<TModel>^ ViewData {
    ViewDataDictionary<TModel>^ get ();
    void set (ViewDataDictionary<TModel>^ value);
}

Property Value

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

See Also

Reference

ViewUserControl<TModel> Class

System.Web.Mvc Namespace