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

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


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

System.Collections.CollectionBase
System.CodeDom.CodeCatchClauseCollection


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


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


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

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


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


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


CodeCatchClauseCollection コンストラクタ

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

CodeCatchClauseCollection プロパティ

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

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

CodeCatchClauseCollection メソッド


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

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


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

名前 | 説明 | |
---|---|---|
![]() | 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に収録されているすべての辞書からCodeCatchClauseCollectionを検索する場合は、下記のリンクをクリックしてください。

- CodeCatchClauseCollectionのページへのリンク