XmlSchemaObjectCollection.Insert(Int32, XmlSchemaObject) 메서드

정의

에 삽입 XmlSchemaObjectXmlSchemaObjectCollection합니다.

public:
 void Insert(int index, System::Xml::Schema::XmlSchemaObject ^ item);
public void Insert(int index, System.Xml.Schema.XmlSchemaObject item);
member this.Insert : int * System.Xml.Schema.XmlSchemaObject -> unit
Public Sub Insert (index As Integer, item As XmlSchemaObject)

매개 변수

index
Int32

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

item
XmlSchemaObject

삽입할 항목입니다 XmlSchemaObject .

예외

index가 0보다 작습니다.

-또는-

indexCount보다 큽니다.

설명

이미 용량과 같으면 Count 새 요소가 삽입되기 전에 내부 배열을 자동으로 다시 할당하여 목록의 용량이 두 배가 됩니다.

index으면 Count . valueXmlSchemaObjectCollection끝에 추가됩니다.

삽입 지점을 따르는 요소는 새 요소를 수용하기 위해 아래로 이동합니다.

적용 대상