RouteValueDictionary Constructor (IDictionary(Of String, Object))

 

Initializes a new instance of the RouteValueDictionary class and adds elements from the specified collection.

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

Public Sub New (
	dictionary As IDictionary(Of String, Object)
)

Parameters

dictionary
Type: System.Collections.Generic.IDictionary(Of String, Object)

A collection whose elements are copied to the new collection.

Exception Condition
ArgumentNullException

dictionary is null.

ArgumentException

dictionary contains one or more duplicate keys.

Every key in a RouteValueDictionary object must be unique. The RouteValueDictionary class uses case-insensitive ordinal comparison. For more information, see OrdinalIgnoreCase. A key cannot be null.

.NET Framework
Available since 3.5
Return to top
Show: