CodeMethodInvokeExpression クラスとは?

辞典・百科事典の検索サービス - Weblio辞書

初めての方へ

参加元一覧


用語解説|全文検索
Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeMethodInvokeExpression クラスの意味・解説 

.NET Framework クラス ライブラリ リファレンス

日本マイクロソフト株式会社日本マイクロソフト株式会社

CodeMethodInvokeExpression クラス

メソッド呼び出す式を表します。

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

解説解説
使用例使用

CodeMethodInvokeExpression使用してメソッド呼び出す例を次に示します。

' This CodeMethodInvokeExpression calls Me.Dispose(true)

    ' The targetObject parameter indicates the object containing the
 method to invoke.
    ' The methodName parameter indicates the method to invoke.
    ' The parameters array contains the parameters for the method invoke.

    Dim methodInvoke As New
 CodeMethodInvokeExpression( _
       New CodeThisReferenceExpression(), _
       "Dispose", _
       New CodeExpression() {New CodePrimitiveExpression(True)})

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

    ' Me.Dispose(true)
CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression(
    // targetObject that contains the method to invoke.
    new CodeThisReferenceExpression(),
    // methodName indicates the method to invoke.
    "Dispose",
    // parameters array contains the parameters for the method.
    new CodeExpression[] { new CodePrimitiveExpression(true)
 } );

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

// this.Dispose(true);
array<CodeExpression^>^temp0 = {gcnew CodePrimitiveExpression( true
 )};

// parameters array contains the parameters for the method.
CodeMethodInvokeExpression^ methodInvoke = gcnew CodeMethodInvokeExpression( gcnew
 CodeThisReferenceExpression,"Dispose",temp0 );

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





CodeMethodInvokeExpression クラスのページへのリンク
「CodeMethodInvokeExpression クラス」の関連用語
CodeMethodInvokeExpression クラスのお隣キーワード
モバイル
モバイル版のWeblioは、下記のURLからアクセスしてください。
http://m.weblio.jp/
_ _   


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

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

©2012 Weblio RSS