ViewPage.SetViewData Method (ViewDataDictionary)

 

Sets the view data dictionary for the associated view.

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

Syntax

protected virtual void SetViewData(
    ViewDataDictionary viewData
)
protected:
virtual void SetViewData(
    ViewDataDictionary^ viewData
)
abstract SetViewData : 
        viewData:ViewDataDictionary -> unit
override SetViewData : 
        viewData:ViewDataDictionary -> unit
Protected Overridable Sub SetViewData (
    viewData As ViewDataDictionary
)

Parameters

See Also

ViewPage Class
System.Web.Mvc Namespace

Return to top