RSS.NET

RssModuleItemCollection.CopyTo Method 

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

[Visual Basic]
Public Sub CopyTo( _
   ByVal array As RssModuleItem(), _
   ByVal index As Integer _
)
[C#]
public void CopyTo(
   RssModuleItem[] array,
   int index
);

Parameters

array
The one-dimensional RssModuleItem Array that is the destination of the elements copied from RssModuleItemCollection. The Array must have zero-based indexing.
index
The zero-based index in array at which copying begins.

Exceptions

Exception Type Condition
ArgumentNullException array is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException index is less than zero.
ArgumentException array is multidimensional. -or- index is equal to or greater than the length of array.-or-The number of elements in the source RssModuleItemCollection is greater than the available space from index to the end of the destination array.

See Also

RssModuleItemCollection Class | Rss Namespace