TypeLoadException クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public Class TypeLoadException Inherits SystemException Implements ISerializable
[SerializableAttribute] [ComVisibleAttribute(true)] public class TypeLoadException : SystemException, ISerializable
[SerializableAttribute] [ComVisibleAttribute(true)] public ref class TypeLoadException : public SystemException, ISerializable

共通言語ランタイムがアセンブリまたはアセンブリ内の型を検出できない場合や、その型を読み込めない場合に、TypeLoadException がスローされます。
TypeLoadException は、値 0x80131522 を保持する HRESULT COR_E_TYPELOAD を使用します。
TypeLoadException のインスタンスの初期プロパティ値の一覧については、TypeLoadException コンストラクタのトピックを参照してください。

System.Exception
System.SystemException
System.TypeLoadException
System.DllNotFoundException
System.EntryPointNotFoundException


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


TypeLoadException コンストラクタ ()
アセンブリ: mscorlib (mscorlib.dll 内)


このコンストラクタは、新しいインスタンスの Message プロパティを "型の読み込み中にエラーが発生しました" などのエラーを説明するシステム提供のメッセージに初期化します。このメッセージは、システムの現在のカルチャを考慮して指定します。
TypeLoadException のインスタンスの初期プロパティ値を次の表に示します。

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


TypeLoadException コンストラクタ (String)
アセンブリ: mscorlib (mscorlib.dll 内)


message パラメータの内容は、ユーザーが理解できる内容である必要があります。このコンストラクタの呼び出し元は、この文字列が現在のシステムのカルチャに合わせてローカライズ済みであることを確認しておく必要があります。
TypeLoadException のインスタンスの初期プロパティ値を次の表に示します。

Imports System Public Class TypeLoadException_Constructor2 Public Shared Sub Main() Console.WriteLine("This program throws an exception upon successful run.") Console.WriteLine("Generating TypeLoadException with custom message...") Try ' Generate a new instance of TypeLoadException. TypeLoadExceptionDemoClass.GenerateException() Catch e As TypeLoadException Console.WriteLine(("TypeLoadException: " + ControlChars.Cr + ControlChars.Tab + "Error Message = " + e.Message)) Catch e As Exception Console.WriteLine(("Exception: " + ControlChars.Cr + ControlChars.Tab + "Error Message = " + e.Message)) End Try End Sub 'Main End Class 'TypeLoadException_Constructor2 Class TypeLoadExceptionDemoClass Public Shared Function GenerateException() As Boolean ' Throw a TypeLoadException with custom defined message. Throw New TypeLoadException("This is a custom generated TypeLoadException error message") End Function 'GenerateException End Class 'TypeLoadExceptionDemoClass
using System; public class TypeLoadException_Constructor2 { public static void Main() { Console.WriteLine("This program throws an exception upon successful run."); Console.WriteLine("Generating TypeLoadException with custom message..."); try { // Generate a new instance of TypeLoadException. TypeLoadExceptionDemoClass.GenerateException(); } catch (TypeLoadException e) { Console.WriteLine ("TypeLoadException: \n\tError Message = " + e.Message); } catch (Exception e) { Console.WriteLine ("Exception: \n\tError Message = " + e.Message); } } } class TypeLoadExceptionDemoClass { public static bool GenerateException() { // Throw a TypeLoadException with custom defined message. throw new TypeLoadException("This is a custom generated TypeLoadException error message"); } }
using namespace System; class TypeLoadExceptionDemoClass { public: static bool GenerateException() { // Throw a TypeLoadException with custom defined message. throw gcnew TypeLoadException( "This is a custom generated TypeLoadException error message" ); } }; int main() { Console::WriteLine( "This program throws an exception upon successful run." ); Console::WriteLine( "Generating TypeLoadException with custom message..." ); try { // Generate a new instance of TypeLoadException. TypeLoadExceptionDemoClass::GenerateException(); } catch ( TypeLoadException^ e ) { Console::WriteLine( "TypeLoadException: \n\tError Message = {0}", e->Message ); } catch ( Exception^ e ) { Console::WriteLine( "Exception: \n\tError Message = {0}", e->Message ); } }
import System.*; public class TypeLoadException_Constructor2 { public static void main(String[] args) { Console.WriteLine("This program throws an exception upon " +"successful run."); Console.WriteLine("Generating TypeLoadException with " +"custom message..."); try { // Generate a new instance of TypeLoadException. TypeLoadExceptionDemoClass.GenerateException(); } catch (TypeLoadException e) { Console.WriteLine("TypeLoadException: \n\tError Message = " + e.get_Message()); } catch (System.Exception e) { Console.WriteLine("Exception: \n\tError Message = " + e.get_Message()); } } //main } //TypeLoadException_Constructor2 class TypeLoadExceptionDemoClass { public static boolean GenerateException() { // Throw a TypeLoadException with custom defined message. throw new TypeLoadException("This is a custom generated " +"TypeLoadException error message"); } //GenerateException } //TypeLoadExceptionDemoClass

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


TypeLoadException コンストラクタ (SerializationInfo, StreamingContext)
アセンブリ: mscorlib (mscorlib.dll 内)

Dim info As SerializationInfo Dim context As StreamingContext Dim instance As New TypeLoadException(info, context)



例外を生成し、例外データをファイルにシリアル化してから、その例外を再構築する例を次に示します。このコード例を実行するには、アセンブリの完全限定名を指定する必要があります。アセンブリの完全限定名を取得する方法については、「アセンブリ名」を参照してください。
Imports System Imports System.Reflection Imports System.Runtime.Serialization Imports System.Runtime.Serialization.Formatters.Soap Imports System.Security.Permissions Imports System.IO Class GetObjectDataDemo Public Shared Sub Main() ' Get a reference to the assembly mscorlib.dll, which is always ' loaded. (System.String is defined in mscorlib.) Dim tString As Type = GetType(String) Dim mscorlib As [Assembly] = tString.Assembly Try Console.WriteLine("Attempting to load a type not present in the assembly 'mscorlib'") ' This loading of invalid type raises a TypeLoadException Dim myType As Type = mscorlib.GetType("System.NonExistentType", True) Catch ' Serialize the exception to disk and reconstitute it. Dim ErrorDatetime as System.DateTime = DateTime.Now Console.WriteLine("A TypeLoadException has been raised.") ' Create MyTypeLoadException instance with current time. Dim myException As new MyTypeLoadException(ErrorDatetime) Dim myFormatter as IFormatter = new SoapFormatter() Dim myFileStream as Stream myFileStream = New FileStream("typeload.xml", FileMode.Create, FileAccess.Write, FileShare.None) Console.WriteLine("Serializing the TypeLoadException with DateTime as " _ & ErrorDatetime.ToString()) ' Serialize the MyTypeLoadException instance to a file. myFormatter.Serialize(myFileStream, myException) myFileStream.Close() Console.WriteLine("Deserializing the Exception.") myFileStream = New FileStream("typeload.xml", FileMode.Open, FileAccess.Read, FileShare.None) ' Deserialize and reconstitute the instance from file. myException = CType(myFormatter.Deserialize(myFileStream), MyTypeLoadException) myFileStream.Close() Console.WriteLine("Deserialized exception has ErrorDateTime = " + myException.ErrorDateTime.ToString()) End Try End Sub 'Main End Class ' This class overrides the GetObjectData method and initializes ' its data with current time. <Serializable()> _ Public Class MyTypeLoadException Inherits TypeLoadException Private _errorDateTime As System.DateTime = DateTime.Now Public ReadOnly Property ErrorDateTime As DateTime Get Return _errorDateTime End Get End Property Public Sub New(myDateTime As DateTime) _errorDateTime = myDateTime End Sub 'New Protected Sub New(sInfo As SerializationInfo, sContext As StreamingContext) MyBase.New(sInfo, sContext) ' Reconstitute the deserialized information into the instance. _errorDateTime = sInfo.GetDateTime("ErrorDate") End Sub 'New ' GetObjectData overrides must always have a demand for SerializationFormatter. <SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter:=true)> _ Public Overrides Sub GetObjectData(sInfo As SerializationInfo, sContext As StreamingContext) MyBase.GetObjectData(sInfo, sContext) ' Add a value to the Serialization information. sInfo.AddValue("ErrorDate", ErrorDateTime) End Sub 'GetObjectData End Class 'MyTypeLoadExceptionChild
using System; using System.Reflection; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Soap; using System.Security.Permissions; using System.IO; class GetObjectDataDemo { public static void Main() { // Get a reference to the assembly mscorlib.dll, which is always // loaded. (System.String is defined in mscorlib.) Assembly mscorlib = typeof(string).Assembly; try { Console.WriteLine ("Attempting to load a type not present in the assembly 'mscorlib'"); // This loading of invalid type raises a TypeLoadException Type myType = mscorlib.GetType("System.NonExistentType", true); } catch (TypeLoadException) { // Serialize the exception to disk and reconstitute it. System.DateTime ErrorDatetime = DateTime.Now; Console.WriteLine("A TypeLoadException has been raised."); // Create MyTypeLoadException instance with current time. MyTypeLoadException myException = new MyTypeLoadException(ErrorDatetime); IFormatter myFormatter = new SoapFormatter(); Stream myFileStream = new FileStream("typeload.xml", FileMode.Create, FileAccess.Write, FileShare.None); Console.WriteLine("Serializing the TypeLoadException with DateTime as " + ErrorDatetime); // Serialize the MyTypeLoadException instance to a file. myFormatter.Serialize(myFileStream, myException); myFileStream.Close(); Console.WriteLine("Deserializing the Exception."); myFileStream = new FileStream("typeload.xml", FileMode.Open, FileAccess.Read, FileShare.None); // Deserialize and reconstitute the instance from file. myException = (MyTypeLoadException) myFormatter.Deserialize(myFileStream); myFileStream.Close(); Console.WriteLine("Deserialized exception has ErrorDateTime = " + myException.ErrorDateTime); } } } // This class overrides the GetObjectData method and initializes // its data with current time. [Serializable] public class MyTypeLoadException : TypeLoadException { private System.DateTime _errorDateTime = DateTime.Now; public DateTime ErrorDateTime { get { return _errorDateTime; }} public MyTypeLoadException(DateTime myDateTime) { _errorDateTime = myDateTime; } protected MyTypeLoadException(SerializationInfo sInfo, StreamingContext sContext) : base(sInfo, sContext) { // Reconstitute the deserialized information into the instance. _errorDateTime = sInfo.GetDateTime("ErrorDate"); } // GetObjectData overrides must always have a demand for SerializationFormatter. [SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true)] public override void GetObjectData(SerializationInfo sInfo, StreamingContext sContext) { base.GetObjectData(sInfo, sContext); // Add a value to the Serialization information. sInfo.AddValue("ErrorDate", ErrorDateTime); } }
#using <System.Runtime.Serialization.Formatters.Soap.dll> using namespace System; using namespace System::Reflection; using namespace System::Runtime::Serialization; using namespace System::Runtime::Serialization::Formatters::Soap; using namespace System::IO; // This class overrides the GetObjectData method and initializes // its data with current time. [Serializable] public ref class MyTypeLoadExceptionChild: public TypeLoadException { public: System::DateTime ErrorDateTime; MyTypeLoadExceptionChild() { ErrorDateTime = DateTime::Now; } MyTypeLoadExceptionChild( DateTime myDateTime ) { ErrorDateTime = myDateTime; } protected: MyTypeLoadExceptionChild( SerializationInfo^ sInfo, StreamingContext * sContext ) { // Reconstitute the deserialized information into the instance. ErrorDateTime = sInfo->GetDateTime( "ErrorDate" ); } public: void GetObjectData( SerializationInfo^ sInfo, StreamingContext * sContext ) { // Add a value to the Serialization information. sInfo->AddValue( "ErrorDate", ErrorDateTime ); } }; int main() { // Load the mscorlib assembly and get a reference to it. // You must supply the fully qualified assembly name for mscorlib.dll here. Assembly^ myAssembly = Assembly::Load( "Assembly text name, Version, Culture, PublicKeyToken" ); try { Console::WriteLine( "Attempting to load a type not present in the assembly 'mscorlib'" ); // This loading of invalid type raises a TypeLoadException Type^ myType = myAssembly->GetType( "System::NonExistentType", true ); } catch ( TypeLoadException^ ) { // Serialize the exception to disk and reconstitute it back again. try { System::DateTime ErrorDatetime = DateTime::Now; Console::WriteLine( "A TypeLoadException has been raised." ); // Create MyTypeLoadException instance with current time. MyTypeLoadExceptionChild^ myTypeLoadExceptionChild = gcnew MyTypeLoadExceptionChild( ErrorDatetime ); IFormatter^ myFormatter = gcnew SoapFormatter; Stream^ myFileStream = gcnew FileStream( "typeload.xml",FileMode::Create,FileAccess::Write,FileShare::None ); Console::WriteLine( "Serializing the TypeLoadException with DateTime as {0}", ErrorDatetime ); // Serialize the MyTypeLoadException instance to a file. myFormatter->Serialize( myFileStream, myTypeLoadExceptionChild ); myFileStream->Close(); Console::WriteLine( "Deserializing the Exception." ); myFileStream = gcnew FileStream( "typeload.xml",FileMode::Open,FileAccess::Read,FileShare::None ); // Deserialize and reconstitute the instance from file. myTypeLoadExceptionChild = safe_cast<MyTypeLoadExceptionChild^>(myFormatter->Deserialize( myFileStream )); myFileStream->Close(); Console::WriteLine( "Deserialized exception has ErrorDateTime = {0}", myTypeLoadExceptionChild->ErrorDateTime ); } catch ( Exception^ e ) { Console::WriteLine( "Exception : {0}", e->Message ); } } catch ( Exception^ e ) { Console::WriteLine( "Exception : {0}", e->Message ); } }

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


TypeLoadException コンストラクタ (String, Exception)
アセンブリ: mscorlib (mscorlib.dll 内)


前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照が格納されます。InnerException プロパティは、コンストラクタに渡されたものと同じ値を返します。InnerException プロパティによって内部例外値がコンストラクタに渡されなかった場合は、null 参照 (Visual Basic の場合は Nothing) を返します。
TypeLoadException のインスタンスの初期プロパティ値を次の表に示します。

Imports System Imports System.Runtime.InteropServices Public Class TypeLoadException_Constructor3 Public Shared Sub Main() Console.WriteLine("Calling a method in a non-existent DLL which triggers a TypeLoadException.") Try TypeLoadExceptionDemoClass.GenerateException() Catch e As TypeLoadException Console.WriteLine(("TypeLoadException: " + ControlChars.Cr + ControlChars.Tab + "Error Message = " + e.Message)) Console.WriteLine(("TypeLoadException: " + ControlChars.Cr + ControlChars.Tab + "InnerException Message = " + e.InnerException.Message)) Catch e As Exception Console.WriteLine(("Exception: " + ControlChars.Cr + ControlChars.Tab + "Error Message = " + e.Message)) End Try End Sub 'Main End Class 'TypeLoadException_Constructor3 Class TypeLoadExceptionDemoClass ' A call to this method will raise a TypeLoadException. Public Declare Sub NonExistentMethod Lib "NonExistentDLL.DLL" Alias "MethodNotExists" () Public Shared Sub GenerateException() Try NonExistentMethod() Catch e As TypeLoadException ' Rethrow exception with the exception as inner exception Throw New TypeLoadException("This exception was raised due to a call to an invalid method.", e) End Try End Sub 'GenerateException End Class 'TypeLoadExceptionDemoClass
using System; using System.Runtime.InteropServices; public class TypeLoadException_Constructor3 { public static void Main() { Console.WriteLine("Calling a method in a non-existent DLL which triggers a TypeLoadException."); try { TypeLoadExceptionDemoClass.GenerateException(); } catch (TypeLoadException e) { Console.WriteLine ("TypeLoadException: \n\tError Message = " + e.Message); Console.WriteLine ("TypeLoadException: \n\tInnerException Message = " + e.InnerException.Message ); } catch (Exception e) { Console.WriteLine ("Exception: \n\tError Message = " + e.Message); } } } class TypeLoadExceptionDemoClass { // A call to this method will raise a TypeLoadException. [DllImport("NonExistentDLL.DLL", EntryPoint="MethodNotExists")] public static extern void NonExistentMethod(); public static void GenerateException() { try { NonExistentMethod(); } catch (TypeLoadException e) { // Rethrow exception with the exception as inner exception throw new TypeLoadException("This exception was raised due to a call to an invalid method.", e); } } }
using namespace System; using namespace System::Runtime::InteropServices; ref class TypeLoadExceptionDemoClass { public: // A call to this method will raise a TypeLoadException. [DllImport("NonExistentDLL.DLL",EntryPoint="MethodNotExists")] static void NonExistentMethod(); static void GenerateException() { try { NonExistentMethod(); } catch ( TypeLoadException^ e ) { // Rethrow exception with the exception as inner exception throw gcnew TypeLoadException( "This exception was raised due to a call to an invalid method.",e ); } } }; int main() { Console::WriteLine( "Calling a method in a non-existent DLL which triggers a TypeLoadException." ); try { TypeLoadExceptionDemoClass::GenerateException(); } catch ( TypeLoadException^ e ) { Console::WriteLine( "TypeLoadException: \n\tError Message = {0}", e->Message ); Console::WriteLine( "TypeLoadException: \n\tInnerException Message = {0}", e->InnerException->Message ); } catch ( Exception^ e ) { Console::WriteLine( "Exception: \n\tError Message = {0}", e->Message ); } }
import System.*; import System.Runtime.InteropServices.*; public class TypeLoadException_Constructor3 { public static void main(String[] args) { Console.WriteLine("Calling a method in a non-existent DLL which" +" triggers a TypeLoadException."); try { TypeLoadExceptionDemoClass.GenerateException(); } catch (TypeLoadException e) { Console.WriteLine("TypeLoadException: \n\tError Message = " + e.get_Message()); Console.WriteLine("TypeLoadException: \n\tInnerException Message = " + e.get_InnerException().get_Message()); } catch (System.Exception e) { Console.WriteLine("Exception: \n\tError Message = " + e.get_Message()); } } //main } //TypeLoadException_Constructor3 class TypeLoadExceptionDemoClass { // A call to this method will raise a TypeLoadException. /** @attribute DllImport("NonExistentDLL.DLL", EntryPoint = "MethodNotExists") */ public static native void NonExistentMethod(); public static void GenerateException() { try { NonExistentMethod(); } catch (TypeLoadException e) { // Rethrow exception with the exception as inner exception throw new TypeLoadException("This exception was raised due to a " +"call to an invalid method.", e); } } //GenerateException } //TypeLoadExceptionDemoClass

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


TypeLoadException コンストラクタ

名前 | 説明 |
---|---|
TypeLoadException () | TypeLoadException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
TypeLoadException (String) | 指定したエラー メッセージを使用して、TypeLoadException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
TypeLoadException (SerializationInfo, StreamingContext) | シリアル化したデータを使用して、TypeLoadException クラスの新しいインスタンスを初期化します。 |
TypeLoadException (String, Exception) | 指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、TypeLoadException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |

TypeLoadException プロパティ

名前 | 説明 | |
---|---|---|
![]() | Data | 例外に関する追加のユーザー定義情報を提供するキー/値ペアのコレクションを取得します。 ( Exception から継承されます。) |
![]() | HelpLink | 例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。 ( Exception から継承されます。) |
![]() | InnerException | 現在の例外を発生させた Exception インスタンスを取得します。 ( Exception から継承されます。) |
![]() | Message | オーバーライドされます。 この例外のエラー メッセージを取得します。 |
![]() | Source | エラーの原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。 ( Exception から継承されます。) |
![]() | StackTrace | 現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。 ( Exception から継承されます。) |
![]() | TargetSite | 現在の例外をスローするメソッドを取得します。 ( Exception から継承されます。) |
![]() | TypeName | この例外の原因である型の完全限定名を取得します。 |


TypeLoadException メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetBaseException | 派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の主要な原因である Exception を返します。 ( Exception から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetObjectData | オーバーライドされます。 SerializationInfo オブジェクトに、クラス名、メソッド名、リソース ID、および追加例外情報を設定します。 |
![]() | GetType | 現在のインスタンスのランタイム型を取得します。 ( Exception から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の例外の文字列形式を作成して返します。 ( Exception から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

TypeLoadException メンバ
TypeLoadException データ型で公開されるメンバを以下の表に示します。



名前 | 説明 | |
---|---|---|
![]() | Data | 例外に関する追加のユーザー定義情報を提供するキー/値ペアのコレクションを取得します。(Exception から継承されます。) |
![]() | HelpLink | 例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。(Exception から継承されます。) |
![]() | InnerException | 現在の例外を発生させた Exception インスタンスを取得します。(Exception から継承されます。) |
![]() | Message | オーバーライドされます。 この例外のエラー メッセージを取得します。 |
![]() | Source | エラーの原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。(Exception から継承されます。) |
![]() | StackTrace | 現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。(Exception から継承されます。) |
![]() | TargetSite | 現在の例外をスローするメソッドを取得します。(Exception から継承されます。) |
![]() | TypeName | この例外の原因である型の完全限定名を取得します。 |


名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetBaseException | 派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の主要な原因である Exception を返します。 (Exception から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetObjectData | オーバーライドされます。 SerializationInfo オブジェクトに、クラス名、メソッド名、リソース ID、および追加例外情報を設定します。 |
![]() | GetType | 現在のインスタンスのランタイム型を取得します。 (Exception から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の例外の文字列形式を作成して返します。 (Exception から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

- TypeLoadExceptionのページへのリンク