MissingMethodException.Message プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > MissingMethodException.Message プロパティの意味・解説 

MissingMethodException.Message プロパティ

存在しないメソッドクラス名メソッド名、およびシグネチャを示す文字列を取得します。このプロパティ読み取り専用です。

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

解説解説
使用例使用例

Message プロパティの例を次に示します。このコード例は、MissingMethodException クラストピック取り上げているコード例一部分です。

try 
{
    // Attempt to call a static DoSomething method defined in the App
 class.
    // However, because the App class does not define this field, 
    // a MissingFieldException is thrown.
    typeof(App).InvokeMember("DoSomething", BindingFlags.Static | 
        BindingFlags.InvokeMethod, null, null,
 null);
}
catch (MissingMethodException e) 
{
    // Show the user that the DoSomething method cannot be called.
    Console.WriteLine("Unable to call the DoSomething method: {0}", e.Message);
}
try 
{
    // Attempt to call a static DoSomething method defined in the App
 class.
    // However, because the App class does not define this field, 
    // a MissingFieldException is thrown.
    App::typeid->InvokeMember("DoSomething", BindingFlags::Static |
 
        BindingFlags::InvokeMethod, nullptr, nullptr, nullptr);
}
catch (MissingMethodException^ ex) 
{
    // Show the user that the DoSomething method cannot be called.
    Console::WriteLine("Unable to call the DoSomething method: {0}", 
        ex->Message);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MissingMethodException クラス
MissingMethodException メンバ
System 名前空間



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

辞書ショートカット

すべての辞書の索引

「MissingMethodException.Message プロパティ」の関連用語

MissingMethodException.Message プロパティのお隣キーワード
検索ランキング

   

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



MissingMethodException.Message プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS