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

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > 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) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「CodeIndexerExpression クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS