CodeParameterDeclarationExpressionCollection.Add メソッド

定義

指定した 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 インスタンスに追加する方法を示します。

// 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"))

適用対象

こちらもご覧ください