SchemaNameCollection.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);
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

값을 삽입할 인덱스(0부터 시작)입니다.

value
Object

목록에 삽입할 항목입니다.

구현

설명

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

목록처럼 연속된 요소로 구성된 컬렉션에서는 제거된 요소 다음에 있는 요소를 위로 이동하여 빈 자리를 채웁니다. 컬렉션에 인덱스가 지정된 경우 이동되는 요소의 인덱스도 업데이트됩니다.

적용 대상