RouteValueDictionary Constructor (IDictionary<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 RouteValueDictionary(
	IDictionary<string, object> dictionary
)

Parameters

dictionary
Type: System.Collections.Generic.IDictionary<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: