SynchronizedCollection<T>.IList.Insert(Int32, Object) 메서드

정의

컬렉션 내의 지정된 인덱스에 개체를 삽입합니다.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

매개 변수

index
Int32

value가 삽입될 0부터 시작하는 인덱스입니다.

value
Object

컬렉션에 삽입할 개체입니다.

구현

예외

지정된 index가 0보다 작거나 컬렉션의 항목 수보다 큰 경우

value 집합이 null인 경우 또는 컬렉션에 적합한 제네릭 형식 T가 아닌 경우

설명

index가 컬렉션에 있는 요소의 수와 같으면 항목이 목록에 추가됩니다. index가 컬렉션에 있는 요소의 수보다 작을 경우 새 요소를 수용할 수 있도록 항목의 삽입 지점 다음에 오는 요소가 아래로 이동합니다.

적용 대상