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

CodeIndexerExpression クラス

オブジェクトインデクサ プロパティへの参照表します

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

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
Public Class CodeIndexerExpression
    Inherits CodeExpression
Dim instance As CodeIndexerExpression
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] 
public class CodeIndexerExpression : CodeExpression
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] 
public ref class CodeIndexerExpression : public
 CodeExpression
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ 
public class CodeIndexerExpression extends
 CodeExpression
SerializableAttribute 
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) 
public class CodeIndexerExpression extends
 CodeExpression
解説解説

CodeIndexerExpression使用してコード インデクサ式または非配列インデクサへの参照を表すことができます配列インデクサへの参照を表すには、CodeArrayIndexerExpression を使用します

使用例使用例

CodeIndexerExpression使用して現在のオブジェクトの型インデクサ参照する例を次に示します

Dim indexerExpression = New CodeIndexerExpression(New
 CodeThisReferenceExpression(), New CodePrimitiveExpression(1))

' A Visual Basic code generator produces the following source code for
 the preceeding example code:

'       Me(1)                    
System.CodeDom.CodeIndexerExpression indexerExpression = new CodeIndexerExpression(
 new CodeThisReferenceExpression(), new CodePrimitiveExpression(1)
 );

// A C# code generator produces the following source code for the preceeding
 example code:

//        this[1];        
array<CodePrimitiveExpression^>^temp1 = {gcnew CodePrimitiveExpression( 1 )};
System::CodeDom::CodeIndexerExpression^ indexerExpression = gcnew CodeIndexerExpression(
 gcnew CodeThisReferenceExpression,temp1 );

// A C# code generator produces the following source code for the preceeding
 example code:
//        this[1];
System.CodeDom.CodeIndexerExpression indexerExpression = new 
    CodeIndexerExpression(new CodeThisReferenceExpression(), 
    new CodeExpression[] { new CodePrimitiveExpression((Int32)1)
 });
// A VJ# code generator produces the following source code for the
// preceeding example code:
// this[1];        
継承階層継承階層
System.Object
   System.CodeDom.CodeObject
     System.CodeDom.CodeExpression
      System.CodeDom.CodeIndexerExpression
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

CodeIndexerExpression コンストラクタ ()


CodeIndexerExpression コンストラクタ (CodeExpression, CodeExpression[])

対象オブジェクトインデックス指定して、CodeIndexerExpression クラス新しインスタンス初期化します。

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

Public Sub New ( _
    targetObject As CodeExpression, _
    ParamArray indices As CodeExpression()
 _
)
Dim targetObject As CodeExpression
Dim indices As CodeExpression()

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

パラメータ

targetObject

対象オブジェクト

indices

インデクサ式の 1 つ上のインデックス

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

CodeIndexerExpression コンストラクタ

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

名前 説明
CodeIndexerExpression () CodeIndexerExpression クラス新しインスタンス初期化します。
CodeIndexerExpression (CodeExpression, CodeExpression[]) 対象オブジェクトインデックス指定してCodeIndexerExpression クラス新しインスタンス初期化します。
参照参照

関連項目

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

CodeIndexerExpression プロパティ


CodeIndexerExpression メソッド


CodeIndexerExpression メンバ

オブジェクトインデクサ プロパティへの参照表します

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド CodeIndexerExpression オーバーロードされます。 CodeIndexerExpression クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

CodeIndexerExpression クラス
System.CodeDom 名前空間



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

辞書ショートカット

すべての辞書の索引

「CodeIndexerExpression」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS