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

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

CodeArrayIndexerExpression を使用して、1 次元以上の配列のインデックスへの参照を表すことができます。コード (非配列) インデクサのインデックスへの参照を表すには、CodeIndexerExpression を使用します。TargetObject プロパティは、インデクサ オブジェクトを示します。Indices プロパティは、対象となる配列内の単一のインデックス、または組み合わせることによって配列の各次元の特定の共通部分を指定するインデックスの集合を示します。

x という名前の整数配列のインデックス 5 を参照する CodeArrayIndexerExpression を作成するコードを次に示します。
' Create an array indexer expression that references index 5 of array "x" Dim ci1 As New CodeArrayIndexerExpression(New CodeVariableReferenceExpression("x"), New CodePrimitiveExpression(5)) ' A Visual Basic code generator produces the following source code for the preceeding example code: ' x[5]
// Create an array indexer expression that references index 5 of array "x" CodeArrayIndexerExpression ci1 = new CodeArrayIndexerExpression(new CodeVariableReferenceExpression("x"), new CodePrimitiveExpression(5)); // A C# code generator produces the following source code for the preceeding example code: // x[5]
// Create an array indexer expression that references index 5 of array "x" array<CodeExpression^>^temp = {gcnew CodePrimitiveExpression( 5 )}; CodeArrayIndexerExpression^ ci1 = gcnew CodeArrayIndexerExpression( gcnew CodeVariableReferenceExpression( "x" ),temp ); // A C# code generator produces the following source code for the preceeding example code: // x[5]
// Create an array indexer expression that references index 5 of array "x" CodeArrayIndexerExpression ci1 = new CodeArrayIndexerExpression( new CodeVariableReferenceExpression("x"), new CodeExpression[] { new CodePrimitiveExpression((Int32)5) }); // A VJ# code generator produces the following source code for the // preceeding example code: // x[5]

System.CodeDom.CodeObject
System.CodeDom.CodeExpression
System.CodeDom.CodeArrayIndexerExpression


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


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


CodeArrayIndexerExpression コンストラクタ (CodeExpression, CodeExpression[])
アセンブリ: System (system.dll 内)

Dim targetObject As CodeExpression Dim indices As CodeExpression() Dim instance As New CodeArrayIndexerExpression(targetObject, indices)
public: CodeArrayIndexerExpression ( CodeExpression^ targetObject, ... array<CodeExpression^>^ indices )
public function CodeArrayIndexerExpression ( targetObject : CodeExpression, ... indices : CodeExpression[] )

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


CodeArrayIndexerExpression コンストラクタ

名前 | 説明 |
---|---|
CodeArrayIndexerExpression () | CodeArrayIndexerExpression クラスの新しいインスタンスを初期化します。 |
CodeArrayIndexerExpression (CodeExpression, CodeExpression[]) | 対象オブジェクトとインデックスを指定して、CodeArrayIndexerExpression クラスの新しいインスタンスを初期化します。 |

CodeArrayIndexerExpression プロパティ

名前 | 説明 | |
---|---|---|
![]() | Indices | インデクサ式の 1 つ以上のインデックスを取得または設定します。 |
![]() | TargetObject | この配列インデクサの対象オブジェクトを取得または設定します。 |
![]() | UserData | 現在のオブジェクトのユーザー定義可能なデータを取得または設定します。 ( CodeObject から継承されます。) |

CodeArrayIndexerExpression メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

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


名前 | 説明 | |
---|---|---|
![]() | Indices | インデクサ式の 1 つ以上のインデックスを取得または設定します。 |
![]() | TargetObject | この配列インデクサの対象オブジェクトを取得または設定します。 |
![]() | UserData | 現在のオブジェクトのユーザー定義可能なデータを取得または設定します。(CodeObject から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

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

- CodeArrayIndexerExpressionのページへのリンク