SqlErrorCollection.CopyTo Metoda
Definicja
Kopiuje elementy SqlErrorCollection kolekcji.Copies the elements of the SqlErrorCollection collection.
Przeciążenia
CopyTo(Array, Int32) |
Kopiuje elementy SqlErrorCollection kolekcji do Array , rozpoczynając od określonego indeksu.Copies the elements of the SqlErrorCollection collection into an Array, starting at the specified index. |
CopyTo(SqlError[], Int32) |
Kopiuje elementy SqlErrorCollection kolekcji do SqlErrorCollection , rozpoczynając od określonego indeksu.Copies the elements of the SqlErrorCollection collection into a SqlErrorCollection, starting at the specified index. |
CopyTo(Array, Int32)
Kopiuje elementy SqlErrorCollection kolekcji do Array , rozpoczynając od określonego indeksu.Copies the elements of the SqlErrorCollection collection into an Array, starting at the specified index.
public:
virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)
Parametry
- index
- Int32
Indeks, z którego należy rozpocząć kopiowanie do array
parametru.The index from which to start copying into the array
parameter.
Implementuje
Wyjątki
Suma index
i liczba elementów w SqlErrorCollection kolekcji jest większa niż wartość Length Array .The sum of index
and the number of elements in the SqlErrorCollection collection is greater than the Length of the Array.
array
Ma wartość null
.The array
is null
.
Wartość index
jest nieprawidłowa dla elementu array
.The index
is not valid for array
.
Dotyczy
CopyTo(SqlError[], Int32)
Kopiuje elementy SqlErrorCollection kolekcji do SqlErrorCollection , rozpoczynając od określonego indeksu.Copies the elements of the SqlErrorCollection collection into a SqlErrorCollection, starting at the specified index.
public:
void CopyTo(cli::array <System::Data::SqlClient::SqlError ^> ^ array, int index);
public void CopyTo (System.Data.SqlClient.SqlError[] array, int index);
member this.CopyTo : System.Data.SqlClient.SqlError[] * int -> unit
Public Sub CopyTo (array As SqlError(), index As Integer)
Parametry
- array
- SqlError[]
SqlErrorCollectionDo kopiowania elementów do.The SqlErrorCollection to copy the elements into.
- index
- Int32
Indeks, z którego należy rozpocząć kopiowanie do array
parametru.The index from which to start copying into the array
parameter.
Wyjątki
Suma index
i liczba elementów w SqlErrorCollection kolekcji jest większa niż długość SqlErrorCollection .The sum of index
and the number of elements in the SqlErrorCollection collection is greater than the length of the SqlErrorCollection.
array
Ma wartość null
.The array
is null
.
Wartość index
jest nieprawidłowa dla elementu array
.The index
is not valid for array
.