List<T>.IList.Add(Object) 메서드

정의

IList에 항목을 추가합니다.

 virtual int System.Collections.IList.Add(System::Object ^ item) = System::Collections::IList::Add;
int IList.Add (object item);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (item As Object) As Integer Implements IList.Add

매개 변수

item
Object

Object에 추가할 IList입니다.

반환

새 요소가 삽입된 위치입니다.

구현

예외

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

설명

가 보다 Capacity작으면 Count 이 메서드는 O(1) 작업입니다. 새 요소를 수용하기 위해 용량을 늘려야 하는 경우 이 메서드는 O(n) 작업이 되고 여기서 n 은 입니다 Count.

적용 대상