ReflectionTypeLoadException 類別

定義

當模組中任何類別無法載入時,方法會拋 GetTypes() 出例外。 此類別無法獲得繼承。

public ref class ReflectionTypeLoadException sealed : Exception
public ref class ReflectionTypeLoadException sealed : SystemException
public sealed class ReflectionTypeLoadException : Exception
[System.Serializable]
public sealed class ReflectionTypeLoadException : SystemException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class ReflectionTypeLoadException : SystemException
public sealed class ReflectionTypeLoadException : SystemException
type ReflectionTypeLoadException = class
    inherit Exception
[<System.Serializable>]
type ReflectionTypeLoadException = class
    inherit SystemException
    interface ISerializable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ReflectionTypeLoadException = class
    inherit SystemException
    interface ISerializable
type ReflectionTypeLoadException = class
    inherit SystemException
    interface ISerializable
Public NotInheritable Class ReflectionTypeLoadException
Inherits Exception
Public NotInheritable Class ReflectionTypeLoadException
Inherits SystemException
繼承
ReflectionTypeLoadException
繼承
ReflectionTypeLoadException
屬性
實作

備註

ReflectionTypeLoadException 使用值為 0x80131602 的 HRESULT COR_E_REFLECTIONTYPELOAD。

一個實例包含模組中定義並載入的類別陣列(Types 屬性)。 陣列中可以包含一些空值。 還有另一個例外陣列(屬性LoaderExceptions )。 這個例外陣列代表類別載入器拋出的例外。 類別陣列中的漏洞與例外值相符。

此例外同時暴露類別陣列與 的 TypeLoadExceptions陣列。

建構函式

名稱 Description
ReflectionTypeLoadException(Type[], Exception[], String)

初始化一個新的類別實例 ReflectionTypeLoadException ,包含給定的類別、相關例外及例外描述。

ReflectionTypeLoadException(Type[], Exception[])

初始化一個新的類別實例 ReflectionTypeLoadException ,包含給定類別及其相關例外。

屬性

名稱 Description
Data

取得索引鍵/值組的集合,提供例外狀況的其他使用者定義資訊。

(繼承來源 Exception)
HelpLink

取得或設定與這個例外狀況相關聯的說明檔連結。

(繼承來源 Exception)
HResult

取得或設定 HRESULT,這是指派給特定例外狀況的編碼數值。

(繼承來源 Exception)
InnerException

會取得 Exception 造成目前例外的實例。

(繼承來源 Exception)
LoaderExceptions

會接收類別載入器拋出的例外陣列。

Message

取得描述目前例外狀況的訊息。

(繼承來源 Exception)
Source

取得或設定造成錯誤之應用程式或物件的名稱。

(繼承來源 Exception)
StackTrace

取得呼叫堆疊上即時框架的字串表示。

(繼承來源 Exception)
TargetSite

取得擲回目前例外狀況的方法。

(繼承來源 Exception)
Types

取得模組中定義並載入的類別陣列。

方法

名稱 Description
Equals(Object)

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
GetBaseException()

當在派生類別中被覆寫時,回傳 Exception 是一個或多個後續例外的根因。

(繼承來源 Exception)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetObjectData(SerializationInfo, StreamingContext)

提供 ISerializable 序列化物件的實作。

GetType()

取得目前實例的運行時間類型。

(繼承來源 Exception)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

建立並傳回目前例外狀況的字串表示。

(繼承來源 Exception)

事件

名稱 Description
SerializeObjectState

發生於例外狀況串行化以建立例外狀況狀態物件,其中包含例外狀況的串行化數據。

(繼承來源 Exception)

適用於