CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) 메서드

정의

CodeTypeReference을 컬렉션에서 지정한 인덱스에 삽입합니다.

public:
 void Insert(int index, System::CodeDom::CodeTypeReference ^ value);
public void Insert (int index, System.CodeDom.CodeTypeReference value);
member this.Insert : int * System.CodeDom.CodeTypeReference -> unit
Public Sub Insert (index As Integer, value As CodeTypeReference)

매개 변수

index
Int32

항목을 삽입할 인덱스이며 0부터 시작합니다.

value
CodeTypeReference

삽입할 CodeTypeReference입니다.

예제

// Inserts a CodeTypeReference at index 0 of the collection.
collection->Insert( 0, gcnew CodeTypeReference( bool::typeid ) );
// Inserts a CodeTypeReference at index 0 of the collection.
collection.Insert( 0, new CodeTypeReference(typeof(bool)) );
' Inserts a CodeTypeReference at index 0 of the collection.
collection.Insert(0, New CodeTypeReference(GetType(Boolean)))

적용 대상

추가 정보