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


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

- CodeArrayIndexerExpression クラスのページへのリンク