ViewDataDictionary Constructor (ViewDataDictionary)
Initializes a new instance of the ViewDataDictionary class by using the specified dictionary.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
dictionary As ViewDataDictionary _
)
public ViewDataDictionary(
ViewDataDictionary dictionary
)
public:
ViewDataDictionary(
ViewDataDictionary^ dictionary
)
Parameters
- dictionary
Type: System.Web.Mvc.ViewDataDictionary
The dictionary.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The dictionary parameter is null reference (Nothing in Visual Basic). |