ActivityCollection.ICollection<Activity>.CopyTo(Activity[], Int32) Método

Definição

Copia os elementos do ICollection para um Array, começando em um determinado índice Array.Copies the elements of the ICollection to an Array, starting at a particular Array index.

 virtual void System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo(cli::array <System::Workflow::ComponentModel::Activity ^> ^ array, int arrayIndex) = System::Collections::Generic::ICollection<System::Workflow::ComponentModel::Activity ^>::CopyTo;
void ICollection<Activity>.CopyTo (System.Workflow.ComponentModel.Activity[] array, int arrayIndex);
abstract member System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo : System.Workflow.ComponentModel.Activity[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo : System.Workflow.ComponentModel.Activity[] * int -> unit
Sub CopyTo (array As Activity(), arrayIndex As Integer) Implements ICollection(Of Activity).CopyTo

Parâmetros

array
Activity[]

O Array que é o destino da operação de cópia.The Array which is the target of the copy operation.

arrayIndex
Int32

O índice baseado em zero dentro do ICollection em que a cópia é iniciada.The zero-based index within the ICollection where the copy starts.

Implementações

Exceções

array é uma referência nula (Nothing no Visual Basic).array is a null reference (Nothing in Visual Basic).

index é menor que zero.index is less than zero.

array é multidimensional.array is multidimensional.

index é igual ou maior que o comprimento de array.index is equal to or greater than the length of array.

O número de elementos no ICollection de origem é maior que o espaço disponível de index até o final do matriz de destino.The number of elements in the source ICollection is greater than the available space from index to the end of the destination array.

O tipo Activity não pode ser automaticamente convertido para o tipo do array de destino.The type Activity cannot be cast automatically to the type of the destination array.

Aplica-se a