Int32Collection.CopyTo(Int32[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies all of the Int32 values in a collection to a specified array.
public:
virtual void CopyTo(cli::array <int> ^ array, int index);
public void CopyTo (int[] array, int index);
abstract member CopyTo : int[] * int -> unit
override this.CopyTo : int[] * int -> unit
Public Sub CopyTo (array As Integer(), index As Integer)
Parameters
- array
- Int32[]
Identifies the array to which content is copied.
- index
- Int32
Index position in the array to which the contents of the collection are copied.
Implements
Exceptions
index
is less than zero.
array
is multidimensional.
-or-
The number of items in the source Int32Collection is greater than the available space from index
to the end of the destination array
.
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET