Språk

MembershipUserCollection.ICollection.CopyTo(Array, Int32) Metod

Definition

Kopierar innehållet i MembershipUserCollection objektet till ett Array, med början vid ett visst Array index.

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo(Array array, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (array As Array, index As Integer) Implements ICollection.CopyTo

Parametrar

array
Array

Den endimensionella Array som är målet för de objekt som kopieras från MembershipUserCollection objektet. Array Måste ha nollbaserad indexering.

index
Int32

Det nollbaserade index array där kopieringen börjar.

Implementeringar

Undantag

array är null.

index är mindre än 0.

array är flerdimensionellt.

-eller-

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

-eller-

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

Källans MembershipUserCollection typ kan inte omvandlas automatiskt till typen av målmatris.

Gäller för