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

CodeTypeReferenceCollection クラス

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

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

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

CodeTypeReferenceCollection コンストラクタ ()


CodeTypeReferenceCollection コンストラクタ (CodeTypeReference[])

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

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

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

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

パラメータ

value

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

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

CodeTypeReferenceCollection コンストラクタ (CodeTypeReferenceCollection)

指定したソース コレクション要素格納する CodeTypeReferenceCollection クラス新しインスタンス初期化します。

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

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

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

パラメータ

value

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

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

CodeTypeReferenceCollection コンストラクタ

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

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

関連項目

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

CodeTypeReferenceCollection プロパティ


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

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

関連項目

CodeTypeReferenceCollection クラス
System.CodeDom 名前空間
CodeTypeReference クラス

CodeTypeReferenceCollection メソッド


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

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

関連項目

CodeTypeReferenceCollection クラス
System.CodeDom 名前空間
CodeTypeReference クラス

CodeTypeReferenceCollection メンバ

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

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


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

関連項目

CodeTypeReferenceCollection クラス
System.CodeDom 名前空間
CodeTypeReference クラス



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

辞書ショートカット

すべての辞書の索引

「CodeTypeReferenceCollection」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS