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

정의

항목을 IList의 지정한 인덱스에 삽입합니다.

 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

IList에 삽입할 Object입니다.

구현

예외

indexIList의 유효한 인덱스가 아닌 경우

value의 형식은 IList에 할당할 수 없습니다.

설명

indexIList의 항목 수와 같으면 value가 끝에 추가됩니다.

이 메서드는 O (n) 작업, 여기서 nCount합니다.

적용 대상