CodeCommentStatementCollection クラス
アセンブリ: System (system.dll 内)

<SerializableAttribute> _ <ComVisibleAttribute(True)> _ <ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _ Public Class CodeCommentStatementCollection Inherits CollectionBase
[SerializableAttribute] [ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] public class CodeCommentStatementCollection : CollectionBase
[SerializableAttribute] [ComVisibleAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] public ref class CodeCommentStatementCollection : public CollectionBase

CodeCommentStatementCollection クラスは、CodeCommentStatement オブジェクトのセットを格納するために使用できる単純なコレクション オブジェクトを提供します。

' Creates an empty CodeCommentStatementCollection. Dim collection As New CodeCommentStatementCollection() ' Adds a CodeCommentStatement to the collection. collection.Add(New CodeCommentStatement("Test comment")) ' Adds an array of CodeCommentStatement objects to the collection. Dim comments As CodeCommentStatement() = {New CodeCommentStatement("Test comment"), New CodeCommentStatement("Another test comment")} collection.AddRange(comments) ' Adds a collection of CodeCommentStatement objects to the ' collection. Dim commentsCollection As New CodeCommentStatementCollection() commentsCollection.Add(New CodeCommentStatement("Test comment")) commentsCollection.Add(New CodeCommentStatement("Another test comment")) collection.AddRange(commentsCollection) ' Tests for the presence of a CodeCommentStatement in the ' collection, and retrieves its index if it is found. Dim testComment As New CodeCommentStatement("Test comment") Dim itemIndex As Integer = -1 If collection.Contains(testComment) Then itemIndex = collection.IndexOf(testComment) End If ' Copies the contents of the collection beginning at index 0 to the specified CodeCommentStatement array. ' 'comments' is a CodeCommentStatement array. collection.CopyTo(comments, 0) ' Retrieves the count of the items in the collection. Dim collectionCount As Integer = collection.Count ' Inserts a CodeCommentStatement at index 0 of the collection. collection.Insert(0, New CodeCommentStatement("Test comment")) ' Removes the specified CodeCommentStatement from the collection. Dim comment As New CodeCommentStatement("Test comment") collection.Remove(comment) ' Removes the CodeCommentStatement at index 0. collection.RemoveAt(0)
// Creates an empty CodeCommentStatementCollection. CodeCommentStatementCollection collection = new CodeCommentStatementCollection(); // Adds a CodeCommentStatement to the collection. collection.Add( new CodeCommentStatement("Test comment") ); // Adds an array of CodeCommentStatement objects to the collection. CodeCommentStatement[] comments = { new CodeCommentStatement("Test comment"), new CodeCommentStatement("Another test comment") }; collection.AddRange( comments ); // Adds a collection of CodeCommentStatement objects to the collection. CodeCommentStatementCollection commentsCollection = new CodeCommentStatementCollection(); commentsCollection.Add( new CodeCommentStatement("Test comment") ); commentsCollection.Add( new CodeCommentStatement("Another test comment") ); collection.AddRange( commentsCollection ); // Tests for the presence of a CodeCommentStatement in the // collection, and retrieves its index if it is found. CodeCommentStatement testComment = new CodeCommentStatement("Test comment"); int itemIndex = -1; if( collection.Contains( testComment ) ) itemIndex = collection.IndexOf( testComment ); // Copies the contents of the collection, beginning at index 0, // to the specified CodeCommentStatement array. // 'comments' is a CodeCommentStatement array. collection.CopyTo( comments, 0 ); // Retrieves the count of the items in the collection. int collectionCount = collection.Count; // Inserts a CodeCommentStatement at index 0 of the collection. collection.Insert( 0, new CodeCommentStatement("Test comment") ); // Removes the specified CodeCommentStatement from the collection. CodeCommentStatement comment = new CodeCommentStatement("Test comment"); collection.Remove( comment ); // Removes the CodeCommentStatement at index 0. collection.RemoveAt(0);
// Creates an empty CodeCommentStatementCollection. CodeCommentStatementCollection^ collection = gcnew CodeCommentStatementCollection; // Adds a CodeCommentStatement to the collection. collection->Add( gcnew CodeCommentStatement( "Test comment" ) ); // Adds an array of CodeCommentStatement objects to the collection. array<CodeCommentStatement^>^comments = {gcnew CodeCommentStatement( "Test comment" ),gcnew CodeCommentStatement( "Another test comment" )}; collection->AddRange( comments ); // Adds a collection of CodeCommentStatement objects to the collection. CodeCommentStatementCollection^ commentsCollection = gcnew CodeCommentStatementCollection; commentsCollection->Add( gcnew CodeCommentStatement( "Test comment" ) ); commentsCollection->Add( gcnew CodeCommentStatement( "Another test comment" ) ); collection->AddRange( commentsCollection ); // Tests for the presence of a CodeCommentStatement in the // collection, and retrieves its index if it is found. CodeCommentStatement^ testComment = gcnew CodeCommentStatement( "Test comment" ); int itemIndex = -1; if ( collection->Contains( testComment ) ) itemIndex = collection->IndexOf( testComment ); // Copies the contents of the collection, beginning at index 0, // to the specified CodeCommentStatement array. // 'comments' is a CodeCommentStatement array. collection->CopyTo( comments, 0 ); // Retrieves the count of the items in the collection. int collectionCount = collection->Count; // Inserts a CodeCommentStatement at index 0 of the collection. collection->Insert( 0, gcnew CodeCommentStatement( "Test comment" ) ); // Removes the specified CodeCommentStatement from the collection. CodeCommentStatement^ comment = gcnew CodeCommentStatement( "Test comment" ); collection->Remove( comment ); // Removes the CodeCommentStatement at index 0. collection->RemoveAt( 0 );
// Creates an empty CodeCommentStatementCollection. CodeCommentStatementCollection collection = new CodeCommentStatementCollection(); // Adds a CodeCommentStatement to the collection. collection.Add(new CodeCommentStatement("Test comment")); // Adds an array of CodeCommentStatement objects to the collection. CodeCommentStatement comments[] = { new CodeCommentStatement( "Test comment"), new CodeCommentStatement("Another test comment") }; collection.AddRange(comments); // Adds a collection of CodeCommentStatement objects to the collection. CodeCommentStatementCollection commentsCollection = new CodeCommentStatementCollection(); commentsCollection.Add(new CodeCommentStatement("Test comment")); commentsCollection.Add(new CodeCommentStatement("Another test comment")); collection.AddRange(commentsCollection); // Tests for the presence of a CodeCommentStatement in the // collection, and retrieves its index if it is found. CodeCommentStatement testComment = new CodeCommentStatement("Test comment"); int itemIndex = -1; if (collection.Contains(testComment)) { itemIndex = collection.IndexOf(testComment); } // Copies the contents of the collection, beginning at index 0, // to the specified CodeCommentStatement array. // 'comments' is a CodeCommentStatement array. collection.CopyTo(comments, 0); // Retrieves the count of the items in the collection. int collectionCount = collection.get_Count(); // Inserts a CodeCommentStatement at index 0 of the collection. collection.Insert(0, new CodeCommentStatement("Test comment")); // Removes the specified CodeCommentStatement from the collection. CodeCommentStatement comment = new CodeCommentStatement("Test comment"); collection.Remove(comment); // Removes the CodeCommentStatement at index 0. collection.RemoveAt(0);

System.Collections.CollectionBase
System.CodeDom.CodeCommentStatementCollection


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeCommentStatementCollection コンストラクタ ()
アセンブリ: System (system.dll 内)


' Creates an empty CodeCommentStatementCollection. Dim collection As New CodeCommentStatementCollection()
// Creates an empty CodeCommentStatementCollection. CodeCommentStatementCollection collection = new CodeCommentStatementCollection();
// Creates an empty CodeCommentStatementCollection. CodeCommentStatementCollection^ collection = gcnew CodeCommentStatementCollection;
// Creates an empty CodeCommentStatementCollection. CodeCommentStatementCollection collection = new CodeCommentStatementCollection();

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeCommentStatementCollection コンストラクタ (CodeCommentStatement[])
アセンブリ: System (system.dll 内)


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeCommentStatementCollection コンストラクタ (CodeCommentStatementCollection)
アセンブリ: System (system.dll 内)

Dim value As CodeCommentStatementCollection Dim instance As New CodeCommentStatementCollection(value)

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


CodeCommentStatementCollection コンストラクタ

名前 | 説明 |
---|---|
CodeCommentStatementCollection () | CodeCommentStatementCollection クラスの新しいインスタンスを初期化します。 |
CodeCommentStatementCollection (CodeCommentStatement[]) | CodeCommentStatement オブジェクトの指定した配列を格納する CodeCommentStatementCollection クラスの新しいインスタンスを初期化します。 |
CodeCommentStatementCollection (CodeCommentStatementCollection) | 指定したソース コレクションの要素を使用して、CodeCommentStatementCollection クラスの新しいインスタンスを初期化します。 |

CodeCommentStatementCollection プロパティ

名前 | 説明 | |
---|---|---|
![]() | Capacity | CollectionBase に格納できる要素の数を取得または設定します。 ( CollectionBase から継承されます。) |
![]() | Count | CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。 ( CollectionBase から継承されます。) |
![]() | Item | コレクション内の指定したインデックスでの CodeCommentStatement を取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | InnerList | CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。 ( CollectionBase から継承されます。) |
![]() | List | CollectionBase インスタンス内の要素のリストを格納する IList を取得します。 ( CollectionBase から継承されます。) |

CodeCommentStatementCollection メソッド


名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
![]() | OnClear | CollectionBase インスタンスの内容を消去するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnClearComplete | CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnInsert | CollectionBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnInsertComplete | CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnRemove | CollectionBase インスタンスから要素を削除するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnRemoveComplete | CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnSet | CollectionBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnSetComplete | CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnValidate | 値を検証するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |

CodeCommentStatementCollection メンバ
CodeCommentStatement オブジェクトのコレクションを表します。
CodeCommentStatementCollection データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | CodeCommentStatementCollection | オーバーロードされます。 CodeCommentStatementCollection クラスの新しいインスタンスを初期化します。 |

名前 | 説明 | |
---|---|---|
![]() | Capacity | CollectionBase に格納できる要素の数を取得または設定します。(CollectionBase から継承されます。) |
![]() | Count | CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。(CollectionBase から継承されます。) |
![]() | Item | コレクション内の指定したインデックスでの CodeCommentStatement を取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | InnerList | CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。(CollectionBase から継承されます。) |
![]() | List | CollectionBase インスタンス内の要素のリストを格納する IList を取得します。(CollectionBase から継承されます。) |


名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
![]() | OnClear | CollectionBase インスタンスの内容を消去するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnClearComplete | CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnInsert | CollectionBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnInsertComplete | CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnRemove | CollectionBase インスタンスから要素を削除するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnRemoveComplete | CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnSet | CollectionBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnSetComplete | CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnValidate | 値を検証するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |

- CodeCommentStatementCollectionのページへのリンク