MissingFieldException.Message プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

エラー メッセージ文字列。

オブジェクトを生成するときにクラス名が指定されていない場合は、基本クラスから継承した既定の文字列が返されます。このプロパティは Message をオーバーライドします。エラー メッセージはローカライズする必要があります。

Message プロパティの例を次に示します。このコード例は、MissingFieldException クラスのトピックで取り上げているコード例の一部分です。
try { // Attempt to access a static AField field defined in the App class. // However, because the App class does not define this field, // a MissingFieldException is thrown. typeof(App).InvokeMember("AField", BindingFlags.Static | BindingFlags.SetField, null, null, new Object[] { 5 }); } catch (MissingFieldException e) { // Show the user that the AField field cannot be accessed. Console.WriteLine("Unable to access the AField field: {0}", e.Message); }
try { // Attempt to access a static AField field defined in the App class. // However, because the App class does not define this field, // a MissingFieldException is thrown. App::typeid->InvokeMember("AField", BindingFlags::Static | BindingFlags::SetField, nullptr, nullptr, gcnew array<Object^>{5}); } catch (MissingFieldException^ ex) { // Show the user that the AField field cannot be accessed. Console::WriteLine("Unable to access the AField field: {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に収録されているすべての辞書からMissingFieldException.Message プロパティを検索する場合は、下記のリンクをクリックしてください。

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