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( gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ) );
// 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"))

適用対象

こちらもご覧ください