指定した CodeParameterDeclarationExpression をコレクションに追加します。
名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文
'宣言
Public Function Add ( _
value As CodeParameterDeclarationExpression _
) As Integer
'使用
Dim instance As CodeParameterDeclarationExpressionCollection
Dim value As CodeParameterDeclarationExpression
Dim returnValue As Integer
returnValue = instance.Add(value)
public int Add (
CodeParameterDeclarationExpression value
)
public:
int Add (
CodeParameterDeclarationExpression^ value
)
public int Add (
CodeParameterDeclarationExpression value
)
public function Add (
value : CodeParameterDeclarationExpression
) : int
パラメータ
- value
追加する CodeParameterDeclarationExpression。
戻り値
新しい要素が挿入された位置のインデックス。
使用例
' Adds a CodeParameterDeclarationExpression to the collection.
collection.Add(New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))
// Adds a CodeParameterDeclarationExpression to the collection.
collection.Add( new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
// Adds a CodeParameterDeclarationExpression to the collection.
collection->Add( gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ) );
// Adds a CodeParameterDeclarationExpression to the collection.
collection.Add(new CodeParameterDeclarationExpression(int.class.ToType(),
"testIntArgument"));
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0
参照
関連項目
CodeParameterDeclarationExpressionCollection クラス
CodeParameterDeclarationExpressionCollection メンバ
System.CodeDom 名前空間
AddRange