TemplateGroupCollection.CopyTo(TemplateGroup[], Int32) Метод
Определение
Копирует группы в коллекции в совместимый одномерный массив, начиная с заданного индекса целевого массива.Copies the groups in the collection to a compatible one-dimensional array, starting at the specified index of the target array.
public:
void CopyTo(cli::array <System::Web::UI::Design::TemplateGroup ^> ^ array, int index);
public void CopyTo (System.Web.UI.Design.TemplateGroup[] array, int index);
member this.CopyTo : System.Web.UI.Design.TemplateGroup[] * int -> unit
Public Sub CopyTo (array As TemplateGroup(), index As Integer)
Параметры
- array
- TemplateGroup[]
Массив Array, в который копируются группы.The Array that is the destination of the copied groups. Массив Array должен иметь индексацию, начинающуюся с нуля.The Array must have zero-based indexing.
- index
- Int32
Отсчитываемый от нуля индекс в массиве array
, указывающий начало копирования.The zero-based index in array
at which copying begins.
Исключения
Массив array
является многомерным.array
is multidimensional.
-или--or-
Значение параметра index
больше или равно длине массива array
.index
is greater than or equal to the length of array
.
-или--or-
Количество элементов в исходной коллекции TemplateGroupCollection превышает размер доступного места, начиная с индекса index
и до конца массива array
.The number of elements in the source TemplateGroupCollection is greater than the available space from index
to the end of array
.
Значение параметра index
меньше нуля.index
is less than zero.
array
имеет значение null
.array
is null
.
Комментарии
Элементы группы копируются в Array объект в том же порядке, в котором элементы группы индексируются внутри TemplateGroupCollection объекта.The group elements are copied to the Array object in the same order in which the group elements are indexed within the TemplateGroupCollection object.
Применяется к
См. также раздел
- Общие сведения о конструкторах элементов управления ASP.NETASP.NET Control Designers Overview
- Расширение поддержки времени разработкиExtending Design-Time Support
- Практическое руководство. Расширение внешнего вида и функциональности элементов управления в режиме конструктораHow to: Extend the Appearance and Behavior of Controls in Design Mode