StringCollection.IList.Add(Object) 메서드

정의

의 끝에 개체를 추가합니다 StringCollection.

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

매개 변수

value
Object

Object 의 끝에 추가할 입니다StringCollection. 값은 .일 null수 있습니다.

반품

StringCollection 추가된 인덱 value 스입니다.

구현

예외

읽기 StringCollection 전용입니다.

-또는-

크기가 StringCollection 고정되어 있습니다.

설명

StringCollectionnull 유효한 값으로 허용되고 중복 요소를 허용합니다.

이미 용량과 같으면 Count 내부 배열을 자동으로 다시 할당하여 용량 StringCollection 이 증가하고 새 요소가 추가되기 전에 기존 요소가 새 배열에 복사됩니다.

용량보다 작은 경우 Count 이 메서드는 O(1) 작업입니다. 새 요소를 수용하기 위해 용량을 늘려야 하는 경우 이 메서드는 다음과 같은 O(n) 작업이 nCount됩니다.

적용 대상

추가 정보