StateManagedCollection.IList.Insert(Int32, Object) 메서드

정의

항목을 StateManagedCollection 컬렉션 내의 지정한 인덱스에 삽입합니다.

 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

StateManagedCollection에 삽입할 개체입니다.

구현

예외

지정된 index가 컬렉션 범위를 벗어나는 경우

StateManagedCollection이 읽기 전용인 경우

지정된 valuenull입니다.

설명

경우 index 가-1 이면 value 의 시작 부분에 추가 되는 StateManagedCollection 컬렉션입니다. 하는 경우 index 컬렉션의 항목 수와 같으면 value 컬렉션의 끝에 추가 됩니다.

적용 대상

추가 정보