NameValueCollectionExtensions.CopyTo Method
Copies a collection to a target destination.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | CopyTo(NameValueCollection, IDictionary<String, Object>) | Copies the specified collection to the specified destination. |
![]() ![]() | CopyTo(NameValueCollection, IDictionary<String, Object>, Boolean) | Copies the specified collection to the specified destination, and optionally replaces previous entries. |
NameValueCollectionExtensions.CopyTo Method (NameValueCollection, IDictionary<String, Object>)
Copies the specified collection to the specified destination.
public static void CopyTo( this NameValueCollection collection, IDictionary<string, object> destination )
Parameters
- collection
-
Type:
System.Collections.Specialized.NameValueCollection
The collection.
- destination
-
Type:
System.Collections.Generic.IDictionary<String, Object>
The destination.
NameValueCollectionExtensions.CopyTo Method (NameValueCollection, IDictionary<String, Object>, Boolean)
Copies the specified collection to the specified destination, and optionally replaces previous entries.
public static void CopyTo( this NameValueCollection collection, IDictionary<string, object> destination, bool replaceEntries )
Parameters
- collection
-
Type:
System.Collections.Specialized.NameValueCollection
The collection.
- destination
-
Type:
System.Collections.Generic.IDictionary<String, Object>
The destination.
- replaceEntries
-
Type:
System.Boolean
true to replace previous entries; otherwise, false.
Show:

