System.Web.SiteMapNodeCollection.CopyTo Method

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

Syntax

public virtual void CopyTo (SiteMapNode[] array, int index)

Parameters

array
The one-dimensional array that must have zero-based indexing and is the destination of the elements copied from the System.Web.SiteMapNodeCollection.
index
The zero-based index in array at which copying begins.

Remarks

The SiteMapNodeCollection.CopyTo(SiteMapNode[], int) method delegates to the CollectionBase.List property, which accounts for the possible exceptions that are listed in "Exceptions."

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0