NameValueCollectionExtensions.CopyTo Method

 

Copies a collection to a target destination.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCopyTo(NameValueCollection, IDictionary<String, Object>)

Copies the specified collection to the specified destination.

System_CAPS_pubmethodSystem_CAPS_staticCopyTo(NameValueCollection, IDictionary<String, Object>, Boolean)

Copies the specified collection to the specified destination, and optionally replaces previous entries.

Return to top

NameValueCollectionExtensions.CopyTo Method (NameValueCollection, IDictionary<String, Object>)

Copies the specified collection to the specified destination.

public static void CopyTo(
	this NameValueCollection collection,
	IDictionary<stringobject> destination
)

Parameters

collection
Type: System.Collections.Specialized.NameValueCollection

The collection.

destination
Type: System.Collections.Generic.IDictionary<StringObject>

The destination.

Return to top

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<stringobject> destination,
	bool replaceEntries
)

Parameters

collection
Type: System.Collections.Specialized.NameValueCollection

The collection.

destination
Type: System.Collections.Generic.IDictionary<StringObject>

The destination.

replaceEntries
Type: System.Boolean

true to replace previous entries; otherwise, false.

Return to top
Show: