MissingMethodException.Message プロパティ
アセンブリ: 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); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からMissingMethodException.Message プロパティを検索する場合は、下記のリンクをクリックしてください。

- MissingMethodException.Message プロパティのページへのリンク