Condividi tramite


SqlCeErrorCollection.CopyTo Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Copies the elements of the SqlCeErrorCollection into an Array, starting at the given index within the Array.

  [Visual Basic]
  Public Overridable Sub CopyTo( _
   ByVal 
  array
   As Array, _
   ByVal index As Integer _
) Implements ICollection.CopyTo
[C#]
public virtual void CopyTo(Array array,int index
);
[C++]
public: virtual void CopyTo(Array* array,int index
);
[JScript]
public function CopyTo(
   array : Array,
 index : int);

Parameters

  • array
    The Array into which to copy the elements.
  • index
    The starting index of the array.

Implements

ICollection.CopyTo

Exceptions

Exception Type Condition
ArgumentException The sum of index and the number of elements in the SqlCeErrorCollection is greater than the Length of the Array.
ArgumentNullException The array is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException The index is not valid for the array.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeErrorCollection Class | SqlCeErrorCollection Members | System.Data.SqlServerCe Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.