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

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

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

' Creates an empty CodeAttributeArgumentCollection. Dim collection As New CodeAttributeArgumentCollection() ' Adds a CodeAttributeArgument to the collection. collection.Add(New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True))) ' Adds an array of CodeAttributeArgument objects to the collection. Dim arguments As CodeAttributeArgument() = {New CodeAttributeArgument(), New CodeAttributeArgument()} collection.AddRange(arguments) ' Adds a collection of CodeAttributeArgument objects to the collection. Dim argumentsCollection As New CodeAttributeArgumentCollection() argumentsCollection.Add(New CodeAttributeArgument("TestBooleanArgument", New CodePrimitiveExpression(True))) argumentsCollection.Add(New CodeAttributeArgument("TestIntArgument", New CodePrimitiveExpression(1))) collection.AddRange(argumentsCollection) ' Tests for the presence of a CodeAttributeArgument in ' the collection, and retrieves its index if it is found. Dim testArgument As New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True)) Dim itemIndex As Integer = -1 If collection.Contains(testArgument) Then itemIndex = collection.IndexOf(testArgument) End If ' Copies the contents of the collection beginning at index 0, ' to the specified CodeAttributeArgument array. ' 'arguments' is a CodeAttributeArgument array. collection.CopyTo(arguments, 0) ' Retrieves the count of the items in the collection. Dim collectionCount As Integer = collection.Count ' Inserts a CodeAttributeArgument at index 0 of the collection. collection.Insert(0, New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True))) ' Removes the specified CodeAttributeArgument from the collection. Dim argument As New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True)) collection.Remove(argument) ' Removes the CodeAttributeArgument at index 0. collection.RemoveAt(0)
// Creates an empty CodeAttributeArgumentCollection. CodeAttributeArgumentCollection collection = new CodeAttributeArgumentCollection(); // Adds a CodeAttributeArgument to the collection. collection.Add( new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true)) ); // Adds an array of CodeAttributeArgument objects to the collection. CodeAttributeArgument[] arguments = { new CodeAttributeArgument(), new CodeAttributeArgument() }; collection.AddRange( arguments ); // Adds a collection of CodeAttributeArgument objects to // the collection. CodeAttributeArgumentCollection argumentsCollection = new CodeAttributeArgumentCollection(); argumentsCollection.Add( new CodeAttributeArgument("TestBooleanArgument", new CodePrimitiveExpression(true)) ); argumentsCollection.Add( new CodeAttributeArgument("TestIntArgument", new CodePrimitiveExpression(1)) ); collection.AddRange( argumentsCollection ); // Tests for the presence of a CodeAttributeArgument // within the collection, and retrieves its index if it is found. CodeAttributeArgument testArgument = new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true)); int itemIndex = -1; if( collection.Contains( testArgument ) ) itemIndex = collection.IndexOf( testArgument ); // Copies the contents of the collection beginning at index 0, // to the specified CodeAttributeArgument array. // 'arguments' is a CodeAttributeArgument array. collection.CopyTo( arguments, 0 ); // Retrieves the count of the items in the collection. int collectionCount = collection.Count; // Inserts a CodeAttributeArgument at index 0 of the collection. collection.Insert( 0, new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true)) ); // Removes the specified CodeAttributeArgument from the collection. CodeAttributeArgument argument = new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true)); collection.Remove( argument ); // Removes the CodeAttributeArgument at index 0. collection.RemoveAt(0);
// Creates an empty CodeAttributeArgumentCollection. CodeAttributeArgumentCollection^ collection = gcnew CodeAttributeArgumentCollection; // Adds a CodeAttributeArgument to the collection. collection->Add( gcnew CodeAttributeArgument( "Test Boolean Argument",gcnew CodePrimitiveExpression( true ) ) ); // Adds an array of CodeAttributeArgument objects to the collection. array<CodeAttributeArgument^>^arguments = {gcnew CodeAttributeArgument,gcnew CodeAttributeArgument}; collection->AddRange( arguments ); // Adds a collection of CodeAttributeArgument objects to // the collection. CodeAttributeArgumentCollection^ argumentsCollection = gcnew CodeAttributeArgumentCollection; argumentsCollection->Add( gcnew CodeAttributeArgument( "TestBooleanArgument",gcnew CodePrimitiveExpression( true ) ) ); argumentsCollection->Add( gcnew CodeAttributeArgument( "TestIntArgument",gcnew CodePrimitiveExpression( 1 ) ) ); collection->AddRange( argumentsCollection ); // Tests for the presence of a CodeAttributeArgument // within the collection, and retrieves its index if it is found. CodeAttributeArgument^ testArgument = gcnew CodeAttributeArgument( "Test Boolean Argument",gcnew CodePrimitiveExpression( true ) ); int itemIndex = -1; if ( collection->Contains( testArgument ) ) itemIndex = collection->IndexOf( testArgument ); // Copies the contents of the collection beginning at index 0, // to the specified CodeAttributeArgument array. // 'arguments' is a CodeAttributeArgument array. collection->CopyTo( arguments, 0 ); // Retrieves the count of the items in the collection. int collectionCount = collection->Count; // Inserts a CodeAttributeArgument at index 0 of the collection. collection->Insert( 0, gcnew CodeAttributeArgument( "Test Boolean Argument",gcnew CodePrimitiveExpression( true ) ) ); // Removes the specified CodeAttributeArgument from the collection. CodeAttributeArgument^ argument = gcnew CodeAttributeArgument( "Test Boolean Argument",gcnew CodePrimitiveExpression( true ) ); collection->Remove( argument ); // Removes the CodeAttributeArgument at index 0. collection->RemoveAt( 0 );
// Creates an empty CodeAttributeArgumentCollection. CodeAttributeArgumentCollection collection = new CodeAttributeArgumentCollection(); // Adds a CodeAttributeArgument to the collection. collection.Add(new CodeAttributeArgument("Test Boolean Argument" , new CodePrimitiveExpression(System.Convert.ToString(true)))); // Adds an array of CodeAttributeArgument objects to the collection. CodeAttributeArgument arguments[] = { new CodeAttributeArgument(), new CodeAttributeArgument() }; collection.AddRange(arguments); // Adds a collection of CodeAttributeArgument objects to // the collection. CodeAttributeArgumentCollection argumentsCollection = new CodeAttributeArgumentCollection(); argumentsCollection.Add(new CodeAttributeArgument("TestBooleanArgument" , new CodePrimitiveExpression(System.Convert.ToString(true)))); argumentsCollection.Add(new CodeAttributeArgument("TestIntArgument" , new CodePrimitiveExpression(new Integer(1)))); collection.AddRange(argumentsCollection); // Tests for the presence of a CodeAttributeArgument // within the collection, and retrieves its index if it is found. CodeAttributeArgument testArgument = new CodeAttributeArgument("Test " + "Boolean Argument", new CodePrimitiveExpression(System.Convert.ToString(true))); int itemIndex = -1; if (collection.Contains(testArgument)) { itemIndex = collection.IndexOf(testArgument); } // Copies the contents of the collection beginning at index 0, // to the specified CodeAttributeArgument array. // 'arguments' is a CodeAttributeArgument array. collection.CopyTo(arguments, 0); // Retrieves the count of the items in the collection. int collectionCount = collection.get_Count(); // Inserts a CodeAttributeArgument at index 0 of the collection. collection.Insert(0, new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(System.Convert.ToString(true)))); // Removes the specified CodeAttributeArgument from the collection. CodeAttributeArgument argument = new CodeAttributeArgument("Test " + "Boolean Argument", new CodePrimitiveExpression(System.Convert.ToString(true))); collection.Remove(argument); // Removes the CodeAttributeArgument at index 0. collection.RemoveAt(0);

System.Collections.CollectionBase
System.CodeDom.CodeAttributeArgumentCollection


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


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


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

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


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


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

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


CodeAttributeArgumentCollection コンストラクタ

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

CodeAttributeArgumentCollection プロパティ

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

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

CodeAttributeArgumentCollection メソッド


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

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

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

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

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

- CodeAttributeArgumentCollectionのページへのリンク