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

Object 에 삽입할 항목입니다IList.

구현

예외

index가 .에서 유효한 인덱스가 아닌 경우 IList

value 는 에 할당할 수 없는 형식입니다 IList.

설명

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

이 메서드는 O(n) 연산입니다. 여기서 nCount.

적용 대상