Share via


ViewUserControl.EnsureViewData Method

Ensures that view data is added to the ViewDataDictionary object of the user control if the view data exists.

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

Syntax

'Declaration
Protected Sub EnsureViewData
protected void EnsureViewData()
protected:
void EnsureViewData()

See Also

Reference

ViewUserControl Class

System.Web.Mvc Namespace