CopyTo

BehaviorPropertyCollection.CopyTo 方法

将 ICollection 的元素复制到数组中,从特定数组索引开始。

public void CopyTo(IBehaviorProperty[] array, int arrayIndex)
参数类型描述
arrayIBehaviorProperty[]作为从 ICollection 复制的元素目标的一维数组。数组必须具有零基索引。
arrayIndexInt32array 中开始复制的零基索引。

异常

异常条件
ArgumentNullExceptionarray 为 null。
ArgumentOutOfRangeExceptionarrayIndex 小于 0。
ArgumentException来源 ICollection 中的元素数量大于从 arrayIndex 到目标 array 末尾的可用空间。

另见