指定した CodeCommentStatement をコレクションに追加します。
名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文
'宣言
Public Function Add ( _
value As CodeCommentStatement _
) As Integer
'使用
Dim instance As CodeCommentStatementCollection
Dim value As CodeCommentStatement
Dim returnValue As Integer
returnValue = instance.Add(value)
public int Add (
CodeCommentStatement value
)
public:
int Add (
CodeCommentStatement^ value
)
public int Add (
CodeCommentStatement value
)
public function Add (
value : CodeCommentStatement
) : int
パラメータ
- value
追加する CodeCommentStatement。
戻り値
新しい要素が挿入された位置のインデックス。
使用例
' Adds a CodeCommentStatement to the collection.
collection.Add(New CodeCommentStatement("Test comment"))
// Adds a CodeCommentStatement to the collection.
collection.Add( new CodeCommentStatement("Test comment") );
// Adds a CodeCommentStatement to the collection.
collection->Add( gcnew CodeCommentStatement( "Test comment" ) );
// Adds a CodeCommentStatement to the collection.
collection.Add(new CodeCommentStatement("Test comment"));
プラットフォーム
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
参照
関連項目
CodeCommentStatementCollection クラス
CodeCommentStatementCollection メンバ
System.CodeDom 名前空間
AddRange