DirectoryServicesPermissionEntryCollection.CopyTo(DirectoryServicesPermissionEntry[], Int32) 方法

定义

将此集合中的所有 DirectoryServicesPermissionEntry 对象复制指定的数组,从目标数组的指定索引处开始。Copies all DirectoryServicesPermissionEntry objects in this collection to the specified array, starting at the specified index in the target array.

public:
 void CopyTo(cli::array <System::DirectoryServices::DirectoryServicesPermissionEntry ^> ^ array, int index);
public void CopyTo (System.DirectoryServices.DirectoryServicesPermissionEntry[] array, int index);
member this.CopyTo : System.DirectoryServices.DirectoryServicesPermissionEntry[] * int -> unit
Public Sub CopyTo (array As DirectoryServicesPermissionEntry(), index As Integer)

参数

array
DirectoryServicesPermissionEntry[]

接收此集合元素的 DirectoryServicesPermissionEntry 对象的数组。The array of DirectoryServicesPermissionEntry objects that receives the elements of this collection.

index
Int32

在数组中从零开始的索引,此方法从该位置开始复制此集合。The zero-based index in the array where this method starts copying this collection.

适用于

另请参阅