Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ICollection.CopyTo Method

PersonalizationDictionary.ICollection.CopyTo Method

Implements the ICollection.CopyTo method for the PersonalizationDictionary class.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

void ICollection.CopyTo(
	Array array,
	int index
)

Parameters

array
Type: System.Array

An Array of DictionaryEntry items to copy into a PersonalizationDictionary.

index
Type: System.Int32

The starting point in a PersonalizationDictionary at which to insert array.

Implements

ICollection.CopyTo(Array, Int32)

ExceptionCondition
ArgumentException

array is not an array of DictionaryEntry items.

The CopyTo method checks to determine whether array is an array of DictionaryEntry items, then calls the PersonalizationDictionary class's own CopyTo method, passing to it array and index.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft