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