CodeCommentStatementCollectionとは? わかりやすく解説

CodeCommentStatementCollection クラス

CodeCommentStatement オブジェクトコレクション表します

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
Public Class CodeCommentStatementCollection
    Inherits CollectionBase
Dim instance As CodeCommentStatementCollection
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] 
public class CodeCommentStatementCollection
 : CollectionBase
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] 
public ref class CodeCommentStatementCollection
 : public CollectionBase
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ 
public class CodeCommentStatementCollection
 extends CollectionBase
SerializableAttribute 
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) 
public class CodeCommentStatementCollection
 extends 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.Object
   System.Collections.CollectionBase
    System.CodeDom.CodeCommentStatementCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeCommentStatementCollection メンバ
System.CodeDom 名前空間
CodeCommentStatement クラス

CodeCommentStatementCollection コンストラクタ ()

CodeCommentStatementCollection クラス新しインスタンス初期化します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

Dim instance As New CodeCommentStatementCollection
public CodeCommentStatementCollection ()
public:
CodeCommentStatementCollection ()
public CodeCommentStatementCollection ()
public function CodeCommentStatementCollection
 ()
使用例使用例
' 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();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeCommentStatementCollection クラス
CodeCommentStatementCollection メンバ
System.CodeDom 名前空間

CodeCommentStatementCollection コンストラクタ (CodeCommentStatement[])

CodeCommentStatement オブジェクト指定した配列格納する CodeCommentStatementCollection クラス新しインスタンス初期化します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    value As CodeCommentStatement() _
)
Dim value As CodeCommentStatement()

Dim instance As New CodeCommentStatementCollection(value)
public CodeCommentStatementCollection (
    CodeCommentStatement[] value
)
public:
CodeCommentStatementCollection (
    array<CodeCommentStatement^>^ value
)
public CodeCommentStatementCollection (
    CodeCommentStatement[] value
)
public function CodeCommentStatementCollection
 (
    value : CodeCommentStatement[]
)

パラメータ

value

コレクション初期化するために使用する CodeCommentStatement オブジェクト配列

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeCommentStatementCollection クラス
CodeCommentStatementCollection メンバ
System.CodeDom 名前空間

CodeCommentStatementCollection コンストラクタ (CodeCommentStatementCollection)

指定したソース コレクション要素使用してCodeCommentStatementCollection クラス新しインスタンス初期化します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    value As CodeCommentStatementCollection _
)
Dim value As CodeCommentStatementCollection

Dim instance As New CodeCommentStatementCollection(value)
public CodeCommentStatementCollection (
    CodeCommentStatementCollection value
)
public:
CodeCommentStatementCollection (
    CodeCommentStatementCollection^ value
)
public CodeCommentStatementCollection (
    CodeCommentStatementCollection value
)
public function CodeCommentStatementCollection
 (
    value : CodeCommentStatementCollection
)

パラメータ

value

コレクション初期化するために使用する CodeCommentStatementCollection。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeCommentStatementCollection クラス
CodeCommentStatementCollection メンバ
System.CodeDom 名前空間

CodeCommentStatementCollection コンストラクタ

CodeCommentStatementCollection クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

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

関連項目

CodeCommentStatementCollection クラス
CodeCommentStatementCollection メンバ
System.CodeDom 名前空間

CodeCommentStatementCollection プロパティ


パブリック プロパティパブリック プロパティ

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

関連項目

CodeCommentStatementCollection クラス
System.CodeDom 名前空間
CodeCommentStatement クラス

CodeCommentStatementCollection メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Add 指定した CodeCommentStatement をコレクション追加します
パブリック メソッド AddRange オーバーロードされます指定した CodeCommentStatement 配列要素コレクション末尾追加します
パブリック メソッド Clear  CollectionBase インスタンスかすべてのオブジェクト削除します。このメソッドオーバーライドできません。 ( CollectionBase から継承されます。)
パブリック メソッド Contains 指定した CodeCommentStatementコレクション格納されているかどうかを示す値を取得します
パブリック メソッド CopyTo 指定した 1 次元Arrayコレクション オブジェクトコピーしますコピー操作は、指定したインデックスから始まります
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetEnumerator  CollectionBase インスタンス反復処理する列挙子を返します。 ( CollectionBase から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド IndexOf 指定した CodeCommentStatementコレクション内に存在する場合は、コレクション内でのそのインデックス取得します
パブリック メソッド Insert コレクション内の指定したインデックス位置に、CodeCommentStatement挿入します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド Remove 指定した CodeCommentStatementコレクションから削除します
パブリック メソッド RemoveAt  CollectionBase インスタンス指定したインデックスにある要素削除します。このメソッドオーバーライドできません。 ( CollectionBase から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド 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 クラス
System.CodeDom 名前空間
CodeCommentStatement クラス

CodeCommentStatementCollection メンバ

CodeCommentStatement オブジェクトコレクション表します

CodeCommentStatementCollection データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド CodeCommentStatementCollection オーバーロードされます。 CodeCommentStatementCollection クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ Capacity  CollectionBase格納できる要素の数を取得または設定します。(CollectionBase から継承されます。)
パブリック プロパティ Count  CollectionBase インスタンス格納されている要素の数を取得します。このプロパティオーバーライドできません。(CollectionBase から継承されます。)
パブリック プロパティ Item コレクション内の指定したインデックスでの CodeCommentStatement取得または設定します
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ InnerList  CollectionBase インスタンス内の要素リスト格納する ArrayList を取得します。(CollectionBase から継承されます。)
プロテクト プロパティ List  CollectionBase インスタンス内の要素リスト格納する IList を取得します。(CollectionBase から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Add 指定した CodeCommentStatementコレクション追加します
パブリック メソッド AddRange オーバーロードされます指定した CodeCommentStatement 配列要素コレクション末尾追加します
パブリック メソッド Clear  CollectionBase インスタンスかすべてのオブジェクト削除します。このメソッドオーバーライドできません。 (CollectionBase から継承されます。)
パブリック メソッド Contains 指定した CodeCommentStatementコレクション格納されているかどうかを示す値を取得します
パブリック メソッド CopyTo 指定した 1 次元Arrayコレクション オブジェクトコピーしますコピー操作は、指定したインデックスから始まります
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetEnumerator  CollectionBase インスタンス反復処理する列挙子を返します。 (CollectionBase から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド IndexOf 指定した CodeCommentStatementコレクション内に存在する場合は、コレクション内でのそのインデックス取得します
パブリック メソッド Insert コレクション内の指定したインデックス位置に、CodeCommentStatement挿入します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド Remove 指定した CodeCommentStatementコレクションから削除します
パブリック メソッド RemoveAt  CollectionBase インスタンス指定したインデックスにある要素削除します。このメソッドオーバーライドできません。 (CollectionBase から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド 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 クラス
System.CodeDom 名前空間
CodeCommentStatement クラス



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「CodeCommentStatementCollection」の関連用語

CodeCommentStatementCollectionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



CodeCommentStatementCollectionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS