ViewResultBase.ViewData Property

Gets or sets the view data ViewDataDictionary object for this result.

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

Syntax

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

Property Value

Type: System.Web.Mvc.ViewDataDictionary
The view data.

See Also

Reference

ViewResultBase Class

System.Web.Mvc Namespace