DataGridViewComboBoxCell.ObjectCollection.CopyTo(Object[], Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将整个集合复制到数组内指定位置的现有对象数组中。
public:
void CopyTo(cli::array <System::Object ^> ^ destination, int arrayIndex);
public void CopyTo(object[] destination, int arrayIndex);
member this.CopyTo : obj[] * int -> unit
Public Sub CopyTo (destination As Object(), arrayIndex As Integer)
参数
- destination
- Object[]
要将内容复制到的目标数组。
- arrayIndex
- Int32
要在其中开始复制的元素 destination 的索引。
例外
destination 是 null。
arrayIndex 小于 0 或等于或大于长度 destination。
-或-
中的 DataGridViewComboBoxCell.ObjectCollection 元素数大于从 arrayIndex 开始到末尾 destination的可用空间。
destination 是多维。