TemplateGroupCollection.CopyTo Method

Copies the groups in the collection to a compatible one-dimensional array, starting at the specified index of the target array.

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public:
void CopyTo (
	array<TemplateGroup^>^ array, 
	int index
)
public void CopyTo (
	TemplateGroup[] array, 
	int index
)
public function CopyTo (
	array : TemplateGroup[], 
	index : int
)
Not applicable.

Parameters

array

The Array that is the destination of the copied groups. The Array must have zero-based indexing.

index

The zero-based index in array at which copying begins.

Exception typeCondition

ArgumentException

array is multidimensional.

-or-

index is greater than or equal to the length of array.

-or-

The number of elements in the source TemplateGroupCollection is greater than the available space from index to the end of array.

ArgumentOutOfRangeException

index is less than zero.

ArgumentNullException

array is a null reference (Nothing in Visual Basic).

The group elements are copied to the Array object in the same order in which the group elements are indexed within the TemplateGroupCollection object.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: