EntityCollection<TEntity>.CopyTo Method (TEntity[], Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Copies all the contents of the collection to an array, starting at the specified index of the target array.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public void CopyTo(
	TEntity[] array,
	int arrayIndex
)

Parameters

array
Type: TEntity[]

The array to copy to.

arrayIndex
Type: System.Int32

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

.NET Framework
Available since 3.5
Return to top
Show: