ViewDataDictionary<TModel> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ViewDataDictionary<TModel>() |
Initializes a new instance of the ViewDataDictionary<TModel> class. |
ViewDataDictionary<TModel>(ViewDataDictionary) |
Initializes a new instance of the ViewDataDictionary<TModel> class by using the specified view data dictionary. |
ViewDataDictionary<TModel>(TModel) |
Initializes a new instance of the ViewDataDictionary<TModel> class by using the specified model. |
ViewDataDictionary<TModel>()
Initializes a new instance of the ViewDataDictionary<TModel> class.
public ViewDataDictionary ();
Public Sub New ()
Applies to
ViewDataDictionary<TModel>(ViewDataDictionary)
Initializes a new instance of the ViewDataDictionary<TModel> class by using the specified view data dictionary.
public ViewDataDictionary (System.Web.Mvc.ViewDataDictionary viewDataDictionary);
new System.Web.Mvc.ViewDataDictionary<'Model> : System.Web.Mvc.ViewDataDictionary -> System.Web.Mvc.ViewDataDictionary<'Model>
Public Sub New (viewDataDictionary As ViewDataDictionary)
Parameters
- viewDataDictionary
- ViewDataDictionary
An existing view data dictionary to copy into this instance.
Applies to
ViewDataDictionary<TModel>(TModel)
Initializes a new instance of the ViewDataDictionary<TModel> class by using the specified model.
public ViewDataDictionary (TModel model);
new System.Web.Mvc.ViewDataDictionary<'Model> : 'Model -> System.Web.Mvc.ViewDataDictionary<'Model>
Public Sub New (model As TModel)
Parameters
- model
- TModel
The data model to use for the view.