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

定义

将该集合的元素复制到 Array(从特定的 Array 索引开始)。Copies the elements of the collection to an Array, starting at a particular 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

参数

array
Array

一维 Array,用作从集合复制的元素的目标数组。The one-dimensional Array that is the destination of the elements copied from collection. Array 必须具有从零开始的索引。The Array must have zero-based indexing.

index
Int32

array 中从零开始的索引,从此处开始复制。The zero-based index in array at which copying begins.

实现

注解

备注

HostProtectionAttribute应用于此类的特性具有以下 Resources 属性值: SynchronizationThe HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. HostProtectionAttribute 不影响桌面应用程序(通常通过双击图标、键入命令或在浏览器中输入 URL 来启动这些应用程序)。The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). 有关详细信息,请参阅 HostProtectionAttribute 类或 SQL Server 编程和宿主保护特性For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

适用于