This documentation is archived and is not being maintained.

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)

private:
virtual void CopyTo(
	Array^ array, 
	int index
) sealed = ICollection::CopyTo

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, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: