IPEndPointCollection.InsertItem(Int32, IPEndPoint) 메서드

정의

IPEndPoint의 지정된 인덱스 위치에 IPEndPointCollection 요소를 삽입합니다.

protected:
 override void InsertItem(int index, System::Net::IPEndPoint ^ item);
protected override void InsertItem (int index, System.Net.IPEndPoint item);
override this.InsertItem : int * System.Net.IPEndPoint -> unit
Protected Overrides Sub InsertItem (index As Integer, item As IPEndPoint)

매개 변수

index
Int32

item을 삽입해야 하는 인덱스(0부터 시작)입니다.

item
IPEndPoint

삽입할 IPEndPoint 개체입니다. 참조 형식에 대해 값은 null이 될 수 있습니다.

예외

index 매개 변수가 0보다 작은 경우

또는

index 매개 변수가 현재 IPEndPointCollection에 들어 있는 항목 수보다 큰 경우

item 매개 변수가 null인 경우

설명

IPEndPointCollection 받아들이지 않는 null 유효한 값으로. IPEndPointCollection 중복 요소를 허용 합니다.

경우 index 에 있는 항목의 현재 개수와 같은지를 IPEndPointCollection , 해당 item 끝에 추가 됩니다 IPEndPointCollection합니다.

이 메서드는 O (n) 작업, 여기서 nCollection<T>.Count합니다.

적용 대상