Partager via


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

Exceptions

Exception Condition
ArgumentNullException

The dictionary parameter is null reference (Nothing in Visual Basic).

See Also

Reference

ViewDataDictionary Class

ViewDataDictionary Overload

System.Web.Mvc Namespace