ReflectionTypeLoadException ReflectionTypeLoadException ReflectionTypeLoadException ReflectionTypeLoadException Class

定義

無法載入模組中的任何類別時,GetTypes() 方法擲回的例外狀況。The exception that is thrown by the GetTypes() method if any of the classes in a module cannot be loaded. 這個類別無法被繼承。This class cannot be inherited.

public ref class ReflectionTypeLoadException sealed : SystemException
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class ReflectionTypeLoadException : SystemException
type ReflectionTypeLoadException = class
    inherit SystemException
Public NotInheritable Class ReflectionTypeLoadException
Inherits SystemException
繼承
ReflectionTypeLoadExceptionReflectionTypeLoadExceptionReflectionTypeLoadExceptionReflectionTypeLoadException
屬性

備註

ReflectionTypeLoadException使用具有值0x80131602 的 HRESULT COR_E_REFLECTIONTYPELOAD。ReflectionTypeLoadException uses the HRESULT COR_E_REFLECTIONTYPELOAD that has the value 0x80131602.

實例包含已在模組中定義且已載入的類別陣列 (類型屬性)。An instance contains the array of classes (Types property) that were defined in the module and were loaded. 陣列可以包含某些 null 值。The array can contain some null values. 還有另一個例外狀況陣列 (LoaderExceptions屬性)。There is also another array of exceptions (LoaderExceptions property). 這個例外狀況陣列代表類別載入器所擲回的例外狀況。This exception array represents the exceptions that were thrown by the class loader. 類別陣列中的漏洞會加上例外狀況。The holes in the class array line up with the exceptions.

這個例外狀況會同時公開類別的陣列和的陣列TypeLoadExceptionsThis exception exposes both the array of classes and the array of TypeLoadExceptions.

建構函式

ReflectionTypeLoadException(Type[], Exception[]) ReflectionTypeLoadException(Type[], Exception[]) ReflectionTypeLoadException(Type[], Exception[]) ReflectionTypeLoadException(Type[], Exception[])

使用指定類別和它們的相關例外狀況,來初始化 ReflectionTypeLoadException 類別的新執行個體。Initializes a new instance of the ReflectionTypeLoadException class with the given classes and their associated exceptions.

ReflectionTypeLoadException(Type[], Exception[], String) ReflectionTypeLoadException(Type[], Exception[], String) ReflectionTypeLoadException(Type[], Exception[], String) ReflectionTypeLoadException(Type[], Exception[], String)

使用指定的類別、它們的相關例外狀況和例外狀況描述來初始化 ReflectionTypeLoadException 類別的新執行個體。Initializes a new instance of the ReflectionTypeLoadException class with the given classes, their associated exceptions, and exception descriptions.

屬性

Data Data Data Data

取得提供例外狀況之其他使用者定義相關資訊的索引鍵/值組集合。Gets a collection of key/value pairs that provide additional user-defined information about the exception.

(Inherited from Exception)
HelpLink HelpLink HelpLink HelpLink

取得或設定與這個例外狀況相關聯的說明檔連結。Gets or sets a link to the help file associated with this exception.

(Inherited from Exception)
HResult HResult HResult HResult

取得或設定 HRESULT,它是指派給特定例外狀況的編碼數值。Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.

(Inherited from Exception)
InnerException InnerException InnerException InnerException

取得造成目前例外狀況的 Exception 執行個體。Gets the Exception instance that caused the current exception.

(Inherited from Exception)
LoaderExceptions LoaderExceptions LoaderExceptions LoaderExceptions

取得類別載入器擲回的例外狀況陣列。Gets the array of exceptions thrown by the class loader.

Message Message Message Message

取得這個例外狀況的錯誤訊息。Gets the error message for this exception.

Source Source Source Source

取得或設定造成錯誤的應用程式或物件的名稱。Gets or sets the name of the application or the object that causes the error.

(Inherited from Exception)
StackTrace StackTrace StackTrace StackTrace

取得呼叫堆疊上即時運算框架的字串表示。Gets a string representation of the immediate frames on the call stack.

(Inherited from Exception)
TargetSite TargetSite TargetSite TargetSite

取得擲回目前例外狀況的方法。Gets the method that throws the current exception.

(Inherited from Exception)
Types Types Types Types

取得在模組中定義並且載入的類別之陣列。Gets the array of classes that were defined in the module and loaded.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBaseException() GetBaseException() GetBaseException() GetBaseException()

在衍生類別中覆寫時,傳回一或多個後續的例外狀況的根本原因 ExceptionWhen overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.

(Inherited from Exception)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

提供序列化物件的 ISerializable 實作。Provides an ISerializable implementation for serialized objects.

GetType() GetType() GetType() GetType()

取得目前執行個體的執行階段類型。Gets the runtime type of the current instance.

(Inherited from Exception)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回這個例外狀況的完整名稱,以及適用於所有載入器例外狀況的訊息。Returns the fully qualified name of this exception and the messages for all the loader exceptions.

事件

SerializeObjectState SerializeObjectState SerializeObjectState SerializeObjectState

當例外狀況序列化,以建立包含例外狀況相關序列化資料的例外狀況狀態物件時,就會發生此事件。Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception.

(Inherited from Exception)

適用於