AdamRoleCollection.CopyTo(AdamRole[], Int32) 方法
定义
public:
void CopyTo(cli::array <System::DirectoryServices::ActiveDirectory::AdamRole> ^ roles, int index);
public void CopyTo (System.DirectoryServices.ActiveDirectory.AdamRole[] roles, int index);
member this.CopyTo : System.DirectoryServices.ActiveDirectory.AdamRole[] * int -> unit
Public Sub CopyTo (roles As AdamRole(), index As Integer)
参数
- roles
- AdamRole[]
接收此集合元素的 AdamRole 对象的数组。The array of AdamRole items that receives the elements of this collection.
- index
- Int32
roles 中从零开始的索引,此方法从该位置开始复制此集合。The zero-based index in roles where this method starts copying this collection.
例外
调用基础目录服务导致错误。A call to the underlying directory service resulted in an error.
该目标数组不足以容纳所需的元素数。The destination array is not large enough to hold the required number of elements.
roles 参数为 null。The roles parameter is null.
指定的 index 参数的值超出了目标数组的范围。The index parameter that is specified is out of range of the destination array.