ActivityCollection.ICollection<Activity>.CopyTo Metod

Definition

Kopierar elementen i ICollection till en Array, med början vid ett visst 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

Parametrar

array
Activity[]

Som Array är målet för kopieringsåtgärden.

arrayIndex
Int32

Det nollbaserade indexet i den ICollection plats där kopian startar.

Implementeringar

Undantag

array är en nullreferens (Nothing i Visual Basic).

index är mindre än noll.

array är flerdimensionellt.

index är lika med eller större än längden på array.

Antalet element i källan ICollection är större än det tillgängliga utrymmet från index till slutet av målmatrisen.

Det går inte att omvandla typen Activity automatiskt till måltypen array.

Gäller för