OidCollection.ICollection.CopyTo(Array, Int32) 方法

定義

OidCollection 物件複製到陣列中。

 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

參數

array
Array

OidCollection 物件複製到其中的陣列。

index
Int32

開始複製作業的位置。

實作

例外狀況

array 不可以是多維陣列。

-或-

array 的長度是無效的位移長度。

arraynull

index 的值超出範圍。

備註

這個方法會將 OidCollection 物件複製到指定位置的陣列。

適用於