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보다 작거나 컬렉션의 항목 수보다 큽니다.

집합이 valuenull 컬렉션에 대한 올바른 제네릭 형식 T 이거나 그렇지 않습니다.

설명

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

적용 대상