CodeParameterDeclarationExpressionCollection.Insert 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 CodeParameterDeclarationExpression 인덱스의 컬렉션에 지정된 값을 삽입합니다.
public:
void Insert(int index, System::CodeDom::CodeParameterDeclarationExpression ^ value);
public void Insert(int index, System.CodeDom.CodeParameterDeclarationExpression value);
member this.Insert : int * System.CodeDom.CodeParameterDeclarationExpression -> unit
Public Sub Insert (index As Integer, value As CodeParameterDeclarationExpression)
매개 변수
- index
- Int32
지정된 개체를 삽입해야 하는 인덱스(0부터 시작)입니다.
삽입할 항목입니다 CodeParameterDeclarationExpression .
예제
다음 예제에서는 메서드를 사용하여 Insert 개체를 CodeParameterDeclarationExpression 추가하는 방법을 보여 줍니다 CodeParameterDeclarationExpressionCollection.
// Inserts a CodeParameterDeclarationExpression at index 0
// of the collection.
collection.Insert( 0, new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
' Inserts a CodeParameterDeclarationExpression at index 0
' of the collection.
collection.Insert(0, New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))