ReflectionTypeLoadException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ReflectionTypeLoadException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ReflectionTypeLoadException(Type[], Exception[]) |
初始化一個新的類別實例 ReflectionTypeLoadException ,包含給定類別及其相關例外。 |
| ReflectionTypeLoadException(Type[], Exception[], String) |
初始化一個新的類別實例 ReflectionTypeLoadException ,包含給定的類別、相關例外及例外描述。 |
ReflectionTypeLoadException(Type[], Exception[])
初始化一個新的類別實例 ReflectionTypeLoadException ,包含給定類別及其相關例外。
public:
ReflectionTypeLoadException(cli::array <Type ^> ^ classes, cli::array <Exception ^> ^ exceptions);
public ReflectionTypeLoadException(Type[] classes, Exception[] exceptions);
public ReflectionTypeLoadException(Type?[]? classes, Exception?[]? exceptions);
public ReflectionTypeLoadException(Type[]? classes, Exception?[]? exceptions);
new System.Reflection.ReflectionTypeLoadException : Type[] * Exception[] -> System.Reflection.ReflectionTypeLoadException
Public Sub New (classes As Type(), exceptions As Exception())
參數
- classes
- Type[]
一個型別 Type 的陣列,包含模組中定義並載入的類別。 此陣列可包含空參考值(Nothing in Visual Basic)。
- exceptions
- Exception[]
一個型別 Exception 的陣列,包含類別載入器拋出的例外。
Nothing陣列中的空參考值(classes Visual Basic 與此 exceptions 陣列中的例外值相符。
適用於
ReflectionTypeLoadException(Type[], Exception[], String)
初始化一個新的類別實例 ReflectionTypeLoadException ,包含給定的類別、相關例外及例外描述。
public:
ReflectionTypeLoadException(cli::array <Type ^> ^ classes, cli::array <Exception ^> ^ exceptions, System::String ^ message);
public ReflectionTypeLoadException(Type[] classes, Exception[] exceptions, string message);
public ReflectionTypeLoadException(Type?[]? classes, Exception?[]? exceptions, string? message);
public ReflectionTypeLoadException(Type[]? classes, Exception?[]? exceptions, string? message);
new System.Reflection.ReflectionTypeLoadException : Type[] * Exception[] * string -> System.Reflection.ReflectionTypeLoadException
Public Sub New (classes As Type(), exceptions As Exception(), message As String)
參數
- classes
- Type[]
一個型別 Type 的陣列,包含模組中定義並載入的類別。 此陣列可包含空參考值(Nothing in Visual Basic)。
- exceptions
- Exception[]
一個型別 Exception 的陣列,包含類別載入器拋出的例外。
Nothing陣列中的空參考值(classes Visual Basic 與此 exceptions 陣列中的例外值相符。
- message
- String
String說明了為何拋出例外。