TableColumnCollection.CopyTo Метод
Определение
Копирование содержимого коллекции и вставка содержимого в заданный массив, начиная с указанной позиции индекса в массиве.Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.
Перегрузки
CopyTo(Array, Int32) |
Копирование содержимого коллекции и вставка содержимого в заданный массив, начиная с указанной позиции индекса в массиве.Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array. |
CopyTo(TableColumn[], Int32) |
Копирование содержимого коллекции и вставка содержимого в заданный массив TableColumn, начиная с указанной позиции индекса в массиве.Copies the contents of the collection and inserts them into a specified TableColumn array of starting at a specified index position in the array. |
CopyTo(Array, Int32)
Копирование содержимого коллекции и вставка содержимого в заданный массив, начиная с указанной позиции индекса в массиве.Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.
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)
Параметры
- array
- Array
Одномерный массив, в который будет скопировано содержимое коллекции.A one-dimensional array to which the collection contents will be copied. Данный массив должен использовать индексирование с отсчетом от нуля.This array must use zero-based indexing.
- index
- Int32
Начинающийся с нуля индекс в array
, задающий позицию, с которой следует начинать вставку копируемых объектов коллекции.A zero-based index in array
specifying the position at which to begin inserting the copied collection objects.
Реализации
Исключения
Вызывается, когда array
включает элементы, которые не совместимы с типом TableColumn, или если index
задает позицию, которая выходит за пределы array
.Raised when array
includes items that are not compatible with the type TableColumn, or if index
specifies a position that falls outside of the bounds of array
.
Возникает, когда array
принимает значение null
.Raised when array
is null
.
Вызывается, когда index
меньше 0.Raised when index
is less than 0.
Применяется к
CopyTo(TableColumn[], Int32)
Копирование содержимого коллекции и вставка содержимого в заданный массив TableColumn, начиная с указанной позиции индекса в массиве.Copies the contents of the collection and inserts them into a specified TableColumn array of starting at a specified index position in the array.
public:
virtual void CopyTo(cli::array <System::Windows::Documents::TableColumn ^> ^ array, int index);
public void CopyTo (System.Windows.Documents.TableColumn[] array, int index);
abstract member CopyTo : System.Windows.Documents.TableColumn[] * int -> unit
override this.CopyTo : System.Windows.Documents.TableColumn[] * int -> unit
Public Sub CopyTo (array As TableColumn(), index As Integer)
Параметры
- array
- TableColumn[]
Одномерный массив TableColumn, в который будет скопировано содержимое коллекции.A one-dimensional TableColumn array to which the collection contents will be copied. Данный массив должен использовать индексирование с отсчетом от нуля.This array must use zero-based indexing.
- index
- Int32
Начинающийся с нуля индекс в array
, задающий позицию, с которой следует начинать вставку копируемых объектов коллекции.A zero-based index in array
specifying the position at which to begin inserting the copied collection objects.
Реализации
Исключения
Вызывается, когда array
включает элементы, которые не совместимы с типом TableColumn, или если index
задает позицию, которая выходит за пределы array
.Raised when array
includes items that are not compatible with the type TableColumn, or if index
specifies a position that falls outside of the bounds of array
.
Возникает, когда array
принимает значение null
.Raised when array
is null
.
Вызывается, когда index
меньше 0.Raised when index
is less than 0.