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

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


' Creates an empty CodeTypeReferenceCollection. Dim collection As New CodeTypeReferenceCollection() ' Adds a CodeTypeReference to the collection. collection.Add(New CodeTypeReference(GetType(Boolean))) ' Adds an array of CodeTypeReference objects to the collection. Dim references As CodeTypeReference() = {New CodeTypeReference(GetType(Boolean)), New CodeTypeReference(GetType(Boolean))} collection.AddRange(references) ' Adds a collection of CodeTypeReference objects to the collection. Dim referencesCollection As New CodeTypeReferenceCollection() referencesCollection.Add(New CodeTypeReference(GetType(Boolean))) referencesCollection.Add(New CodeTypeReference(GetType(Boolean))) collection.AddRange(referencesCollection) ' Tests for the presence of a CodeTypeReference in the ' collection, and retrieves its index if it is found. Dim testReference As New CodeTypeReference(GetType(Boolean)) Dim itemIndex As Integer = -1 If collection.Contains(testReference) Then itemIndex = collection.IndexOf(testReference) End If ' Copies the contents of the collection, beginning at index 0, ' to the specified CodeTypeReference array. ' 'references' is a CodeTypeReference array. collection.CopyTo(references, 0) ' Retrieves the count of the items in the collection. Dim collectionCount As Integer = collection.Count ' Inserts a CodeTypeReference at index 0 of the collection. collection.Insert(0, New CodeTypeReference(GetType(Boolean))) ' Removes the specified CodeTypeReference from the collection. Dim reference As New CodeTypeReference(GetType(Boolean)) collection.Remove(reference) ' Removes the CodeTypeReference at index 0. collection.RemoveAt(0)
// Creates an empty CodeTypeReferenceCollection. CodeTypeReferenceCollection collection = new CodeTypeReferenceCollection(); // Adds a CodeTypeReference to the collection. collection.Add( new CodeTypeReference(typeof(bool)) ); // Adds an array of CodeTypeReference objects to the collection. CodeTypeReference[] references = { new CodeTypeReference(typeof(bool)), new CodeTypeReference(typeof(bool)) }; collection.AddRange( references ); // Adds a collection of CodeTypeReference objects to the collection. CodeTypeReferenceCollection referencesCollection = new CodeTypeReferenceCollection(); referencesCollection.Add( new CodeTypeReference(typeof(bool)) ); referencesCollection.Add( new CodeTypeReference(typeof(bool)) ); collection.AddRange( referencesCollection ); // Tests for the presence of a CodeTypeReference in the // collection, and retrieves its index if it is found. CodeTypeReference testReference = new CodeTypeReference(typeof(bool)); int itemIndex = -1; if( collection.Contains( testReference ) ) itemIndex = collection.IndexOf( testReference ); // Copies the contents of the collection, beginning at index 0, // to the specified CodeTypeReference array. // 'references' is a CodeTypeReference array. collection.CopyTo( references, 0 ); // Retrieves the count of the items in the collection. int collectionCount = collection.Count; // Inserts a CodeTypeReference at index 0 of the collection. collection.Insert( 0, new CodeTypeReference(typeof(bool)) ); // Removes the specified CodeTypeReference from the collection. CodeTypeReference reference = new CodeTypeReference(typeof(bool)); collection.Remove( reference ); // Removes the CodeTypeReference at index 0. collection.RemoveAt(0);
// Creates an empty CodeTypeReferenceCollection. CodeTypeReferenceCollection^ collection = gcnew CodeTypeReferenceCollection; // Adds a CodeTypeReference to the collection. collection->Add( gcnew CodeTypeReference( bool::typeid ) ); // Adds an array of CodeTypeReference objects to the collection. array<CodeTypeReference^>^references = {gcnew CodeTypeReference( bool::typeid ),gcnew CodeTypeReference( bool::typeid )}; collection->AddRange( references ); // Adds a collection of CodeTypeReference objects to the collection. CodeTypeReferenceCollection^ referencesCollection = gcnew CodeTypeReferenceCollection; referencesCollection->Add( gcnew CodeTypeReference( bool::typeid ) ); referencesCollection->Add( gcnew CodeTypeReference( bool::typeid ) ); collection->AddRange( referencesCollection ); // Tests for the presence of a CodeTypeReference in the // collection, and retrieves its index if it is found. CodeTypeReference^ testReference = gcnew CodeTypeReference( bool::typeid ); int itemIndex = -1; if ( collection->Contains( testReference ) ) itemIndex = collection->IndexOf( testReference ); // Copies the contents of the collection, beginning at index 0, // to the specified CodeTypeReference array. // 'references' is a CodeTypeReference array. collection->CopyTo( references, 0 ); // Retrieves the count of the items in the collection. int collectionCount = collection->Count; // Inserts a CodeTypeReference at index 0 of the collection. collection->Insert( 0, gcnew CodeTypeReference( bool::typeid ) ); // Removes the specified CodeTypeReference from the collection. CodeTypeReference^ reference = gcnew CodeTypeReference( bool::typeid ); collection->Remove( reference ); // Removes the CodeTypeReference at index 0. collection->RemoveAt( 0 );
// Creates an empty CodeTypeReferenceCollection. CodeTypeReferenceCollection collection = new CodeTypeReferenceCollection(); // Adds a CodeTypeReference to the collection. collection.Add(new CodeTypeReference(boolean.class.ToType())); // Adds an array of CodeTypeReference objects to the collection. CodeTypeReference references[] = { new CodeTypeReference(boolean. class.ToType()), new CodeTypeReference(boolean.class.ToType()) }; collection.AddRange(references); // Adds a collection of CodeTypeReference objects to the collection. CodeTypeReferenceCollection referencesCollection = new CodeTypeReferenceCollection(); referencesCollection.Add(new CodeTypeReference(boolean.class.ToType())); referencesCollection.Add(new CodeTypeReference(boolean.class.ToType())); collection.AddRange(referencesCollection); // Tests for the presence of a CodeTypeReference in the // collection, and retrieves its index if it is found. CodeTypeReference testReference = new CodeTypeReference(boolean. class.ToType()); int itemIndex = -1; if (collection.Contains(testReference)) { itemIndex = collection.IndexOf(testReference); } // Copies the contents of the collection, beginning at index 0, // to the specified CodeTypeReference array. // 'references' is a CodeTypeReference array. collection.CopyTo(references, 0); // Retrieves the count of the items in the collection. int collectionCount = collection.get_Count(); // Inserts a CodeTypeReference at index 0 of the collection. collection.Insert(0, new CodeTypeReference(boolean.class.ToType())); // Removes the specified CodeTypeReference from the collection. CodeTypeReference reference = new CodeTypeReference(boolean. class.ToType()); collection.Remove(reference); // Removes the CodeTypeReference at index 0. collection.RemoveAt(0);

System.Collections.CollectionBase
System.CodeDom.CodeTypeReferenceCollection


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


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


CodeTypeReferenceCollection コンストラクタ (CodeTypeReference[])
アセンブリ: 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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


CodeTypeReferenceCollection コンストラクタ

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

CodeTypeReferenceCollection プロパティ

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

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

CodeTypeReferenceCollection メソッド


名前 | 説明 | |
---|---|---|
![]() | 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 から継承されます。) |

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


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

名前 | 説明 | |
---|---|---|
![]() | 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 から継承されます。) |

Weblioに収録されているすべての辞書からCodeTypeReferenceCollectionを検索する場合は、下記のリンクをクリックしてください。

- CodeTypeReferenceCollectionのページへのリンク