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

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

CodeBaseReferenceExpression クラス

基本クラス参照表します

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

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

CodeBaseReferenceExpression使用して基本クラスメソッド参照する例を次に示します

' Example method invoke expression uses CodeBaseReferenceExpression
 to produce 
' a base.Dispose method call
Dim methodInvokeExpression As New
 CodeMethodInvokeExpression( New CodeBaseReferenceExpression(),
 "Dispose", New CodeExpression() {})    

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

' MyBase.Dispose
// Example method invoke expression uses CodeBaseReferenceExpression
 to produce 
// a base.Dispose method call
CodeMethodInvokeExpression methodInvokeExpression =                 
    
    // Creates a method invoke expression
    new CodeMethodInvokeExpression(
    
    // targetObject parameter can be a 
    // base class reference
    new CodeBaseReferenceExpression(),
    
    // Method name and method parameter arguments
    "Dispose", new CodeExpression[] {});           
 

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

// base.Dispose();

// Example method invoke expression uses CodeBaseReferenceExpression
 to produce
// a base.Dispose method call
CodeMethodInvokeExpression^ methodInvokeExpression = 
   gcnew CodeMethodInvokeExpression(              // Creates a method
 invoke expression
      gcnew CodeBaseReferenceExpression,          // targetObjectparameter
 can be a base class reference
      "Dispose",gcnew array<CodeExpression^>{} ); //
 Method name and method parameter arguments

// A C# code generator produces the following source code for the preceeding
 example code:
// base.Dispose();
// Example method invoke expression uses CodeBaseReferenceExpression
// to produce 
// a base.Dispose method call
CodeMethodInvokeExpression methodInvokeExpression =
    // Creates a method invoke expression
    new CodeMethodInvokeExpression(
    // targetObject parameter can be a 
    // base class reference
    new CodeBaseReferenceExpression(),
    // Method name and method parameter arguments
    "Dispose", new CodeExpression[]{});
// A VJ# code generator produces the following source code for the 
// preceeding example code:
// super.Dispose();
継承階層継承階層
System.Object
   System.CodeDom.CodeObject
     System.CodeDom.CodeExpression
      System.CodeDom.CodeBaseReferenceExpression
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

「CodeBaseReferenceExpression クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS