DirectoryAttributeCollection.CopyTo(DirectoryAttribute[], Int32) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
메서드는 CopyTo(DirectoryAttribute[], Int32) 대상 배열의 지정된 인덱스에서 시작하여 전체 컬렉션을 1차원 배열에 복사합니다.
public:
void CopyTo(cli::array <System::DirectoryServices::Protocols::DirectoryAttribute ^> ^ array, int index);
public void CopyTo(System.DirectoryServices.Protocols.DirectoryAttribute[] array, int index);
member this.CopyTo : System.DirectoryServices.Protocols.DirectoryAttribute[] * int -> unit
Public Sub CopyTo (array As DirectoryAttribute(), index As Integer)
매개 변수
- array
- DirectoryAttribute[]
개체에서 복사된 요소의 대상인 1 DirectoryAttributeCollection 차원 배열입니다.
- index
- Int32
복사가 시작되는 위치의 array 인덱스(0부터 시작)입니다.
설명
예외
| 예외 | Condition |
|---|---|
| ArgumentNullException |
array null 참조입니다(Visual Basic Nothing). |
| ArgumentOutOfRangeException |
index가 0보다 작습니다. |
| ArgumentException |
array 가 다차원입니다.-또는- 원본 DirectoryAttributeCollection 의 요소 수가 대상 index의 끝까지 사용 가능한 공간 array 보다 큽합니다. |
| InvalidCastException | 원본 DirectoryAttributeCollection 의 형식을 대상 array의 형식으로 자동으로 캐스팅할 수 없습니다. |