ServiceEndpointCollection.InsertItem(Int32, ServiceEndpoint) 메서드

정의

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

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

매개 변수

index
Int32

항목을 삽입할 0부터 시작하는 인덱스입니다.

item
ServiceEndpoint

지정한 ServiceEndpoint에 삽입할 index 항목입니다.

예외

index가 0보다 작은 경우

또는 index가 컬렉션에 포함된 항목 수보다 큰 경우

item이(가) null인 경우

설명

이 메서드는 기본 클래스에 정의된 가상 InsertItem(Int32, T) 메서드를 재정의하며 null 값이 컬렉션에 삽입되지 않도록 보장하는 입력 유효성 검사를 수행하기 위해 제공됩니다. 이 메서드는 사용자가 직접 호출할 수 없습니다.

적용 대상