PersonalizationDictionary.ICollection.CopyTo Method (Array, Int32)

 

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.

Exception Condition
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
Available since 2.0
Return to top
Show: