CodeExpressionCollection クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeExpressionCollection クラスの意味・解説 

CodeExpressionCollection クラス

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

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

<SerializableAttribute> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
<ComVisibleAttribute(True)> _
Public Class CodeExpressionCollection
    Inherits CollectionBase
Dim instance As CodeExpressionCollection
[SerializableAttribute] 
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] 
[ComVisibleAttribute(true)] 
public class CodeExpressionCollection : CollectionBase
[SerializableAttribute] 
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] 
[ComVisibleAttribute(true)] 
public ref class CodeExpressionCollection :
 public CollectionBase
/** @attribute SerializableAttribute() */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ 
/** @attribute ComVisibleAttribute(true) */ 
public class CodeExpressionCollection extends
 CollectionBase
SerializableAttribute 
ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) 
ComVisibleAttribute(true) 
public class CodeExpressionCollection extends
 CollectionBase
解説解説
使用例使用例
' Creates an empty CodeExpressionCollection.
Dim collection As New CodeExpressionCollection()

' Adds a CodeExpression to the collection.
collection.Add(New CodePrimitiveExpression(True))

' Adds an array of CodeExpression objects to the collection.
Dim expressions As CodeExpression() = {New
 CodePrimitiveExpression(True), New CodePrimitiveExpression(True)}
collection.AddRange(expressions)

' Adds a collection of CodeExpression objects to the collection.
Dim expressionsCollection As New
 CodeExpressionCollection()
expressionsCollection.Add(New CodePrimitiveExpression(True))
expressionsCollection.Add(New CodePrimitiveExpression(True))
collection.AddRange(expressionsCollection)

' Tests for the presence of a CodeExpression in the 
' collection, and retrieves its index if it is found.
Dim testComment = New CodePrimitiveExpression(True)
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 CodeExpression array.
' 'expressions' is a CodeExpression array.
collection.CopyTo(expressions, 0)

' Retrieves the count of the items in the collection.
Dim collectionCount As Integer
 = collection.Count

' Inserts a CodeExpression at index 0 of the collection.
collection.Insert(0, New CodePrimitiveExpression(True))

' Removes the specified CodeExpression from the collection.
Dim expression = New CodePrimitiveExpression(True)
collection.Remove(expression)

' Removes the CodeExpression at index 0.
collection.RemoveAt(0)
// Creates an empty CodeExpressionCollection.
CodeExpressionCollection collection = new CodeExpressionCollection();

// Adds a CodeExpression to the collection.
collection.Add( new CodePrimitiveExpression(true)
 );

// Adds an array of CodeExpression objects to the collection.
CodeExpression[] expressions = { new CodePrimitiveExpression(true),
 new CodePrimitiveExpression(true) };
collection.AddRange( expressions );

// Adds a collection of CodeExpression objects to the collection.
CodeExpressionCollection expressionsCollection = new CodeExpressionCollection();
expressionsCollection.Add( new CodePrimitiveExpression(true)
 );
expressionsCollection.Add( new CodePrimitiveExpression(true)
 );
collection.AddRange( expressionsCollection );

// Tests for the presence of a CodeExpression in the 
// collection, and retrieves its index if it is found.
CodeExpression testComment = new CodePrimitiveExpression(true);
int itemIndex = -1;
if( collection.Contains( testComment ) )
    itemIndex = collection.IndexOf( testComment );

// Copies the contents of the collection beginning at index 0 to the
 specified CodeExpression array.
// 'expressions' is a CodeExpression array.
collection.CopyTo( expressions, 0 );

// Retrieves the count of the items in the collection.
int collectionCount = collection.Count;

// Inserts a CodeExpression at index 0 of the collection.
collection.Insert( 0, new CodePrimitiveExpression(true)
 );

// Removes the specified CodeExpression from the collection.
CodeExpression expression = new CodePrimitiveExpression(true);
collection.Remove( expression );

// Removes the CodeExpression at index 0.
collection.RemoveAt(0);
// Creates an empty CodeExpressionCollection.
CodeExpressionCollection^ collection = gcnew CodeExpressionCollection;

// Adds a CodeExpression to the collection.
collection->Add( gcnew CodePrimitiveExpression( true ) );

// Adds an array of CodeExpression objects to the collection.
array<CodeExpression^>^expressions = {gcnew CodePrimitiveExpression( true
 ),gcnew CodePrimitiveExpression( true )};
collection->AddRange( expressions );

// Adds a collection of CodeExpression objects to the collection.
CodeExpressionCollection^ expressionsCollection = gcnew CodeExpressionCollection;
expressionsCollection->Add( gcnew CodePrimitiveExpression( true
 ) );
expressionsCollection->Add( gcnew CodePrimitiveExpression( true
 ) );
collection->AddRange( expressionsCollection );

// Tests for the presence of a CodeExpression in the 
// collection, and retrieves its index if it is found.
CodeExpression^ testComment = gcnew CodePrimitiveExpression( true
 );
int itemIndex = -1;
if ( collection->Contains( testComment ) )
   itemIndex = collection->IndexOf( testComment );

// Copies the contents of the collection beginning at index 0 to the
 specified CodeExpression array.
// 'expressions' is a CodeExpression array.
collection->CopyTo( expressions, 0 );

// Retrieves the count of the items in the collection.
int collectionCount = collection->Count;

// Inserts a CodeExpression at index 0 of the collection.
collection->Insert( 0, gcnew CodePrimitiveExpression( true
 ) );

// Removes the specified CodeExpression from the collection.
CodeExpression^ expression = gcnew CodePrimitiveExpression( true
 );
collection->Remove( expression );

// Removes the CodeExpression at index 0.
collection->RemoveAt( 0 );
// Creates an empty CodeExpressionCollection.
CodeExpressionCollection collection = new CodeExpressionCollection();

// Adds a CodeExpression to the collection.
collection.Add(new CodePrimitiveExpression(
    System.Convert.ToString(true)));

// Adds an array of CodeExpression objects to the collection.
CodeExpression expressions[] =  { new CodePrimitiveExpression(
    System.Convert.ToString(true)), new CodePrimitiveExpression(
    System.Convert.ToString(true)) };
collection.AddRange(expressions);
// Adds a collection of CodeExpression objects to the collection.
CodeExpressionCollection expressionsCollection = new 
    CodeExpressionCollection();
expressionsCollection.Add(new CodePrimitiveExpression(
    System.Convert.ToString(true)));
expressionsCollection.Add(new CodePrimitiveExpression(
    System.Convert.ToString(true)));
collection.AddRange(expressionsCollection);

// Tests for the presence of a CodeExpression in the 
// collection, and retrieves its index if it is found.
CodeExpression testComment = new CodePrimitiveExpression(System.
    Convert.ToString(true));
int itemIndex = -1;
if (collection.Contains(testComment)) {
    itemIndex = collection.IndexOf(testComment);
}

// Copies the contents of the collection beginning at index 0 to 
//the specified CodeExpression array.
// 'expressions' is a CodeExpression array.
collection.CopyTo(expressions, 0);

// Retrieves the count of the items in the collection.
int collectionCount = collection.get_Count();

// Inserts a CodeExpression at index 0 of the collection.
collection.Insert(0, new CodePrimitiveExpression(System.Convert.
    ToString(true)));

// Removes the specified CodeExpression from the collection.
CodeExpression expression = new CodePrimitiveExpression(System.Convert.
    ToString(true));
collection.Remove(expression);

// Removes the CodeExpression at index 0.
collection.RemoveAt(0);
継承階層継承階層
System.Object
   System.Collections.CollectionBase
    System.CodeDom.CodeExpressionCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeExpressionCollection メンバ
System.CodeDom 名前空間
CodeExpression クラス


このページでは「.NET Framework クラス ライブラリ リファレンス」からCodeExpressionCollection クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からCodeExpressionCollection クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCodeExpressionCollection クラス を検索

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

辞書ショートカット

すべての辞書の索引

「CodeExpressionCollection クラス」の関連用語

CodeExpressionCollection クラスのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS