ReflectionTypeLoadException Classe
Définition
Exception levée par la méthode GetTypes() lorsque les classes d'un module ne peuvent pas être chargées.The exception that is thrown by the GetTypes() method if any of the classes in a module cannot be loaded. Cette classe ne peut pas être héritée.This class cannot be inherited.
public ref class ReflectionTypeLoadException sealed : Exception
public ref class ReflectionTypeLoadException sealed : SystemException
public sealed class ReflectionTypeLoadException : Exception
public sealed class ReflectionTypeLoadException : SystemException
[System.Serializable]
public sealed class ReflectionTypeLoadException : SystemException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class ReflectionTypeLoadException : SystemException
type ReflectionTypeLoadException = class
inherit Exception
type ReflectionTypeLoadException = class
inherit SystemException
interface ISerializable
[<System.Serializable>]
type ReflectionTypeLoadException = class
inherit SystemException
interface ISerializable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ReflectionTypeLoadException = class
inherit SystemException
interface ISerializable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ReflectionTypeLoadException = class
inherit SystemException
Public NotInheritable Class ReflectionTypeLoadException
Inherits Exception
Public NotInheritable Class ReflectionTypeLoadException
Inherits SystemException
- Héritage
- Héritage
- Attributs
- Implémente
Remarques
ReflectionTypeLoadException
utilise le COR_E_REFLECTIONTYPELOAD HRESULT qui a la valeur 0x80131602.ReflectionTypeLoadException
uses the HRESULT COR_E_REFLECTIONTYPELOAD that has the value 0x80131602.
Une instance contient le tableau des classes (propriété des types) qui ont été définies dans le module et qui ont été chargées.An instance contains the array of classes (Types property) that were defined in the module and were loaded. Le tableau peut contenir des valeurs NULL.The array can contain some null values. Il existe également un autre tableau d’exceptions ( LoaderExceptions
propriété).There is also another array of exceptions (LoaderExceptions
property). Ce tableau d’exceptions représente les exceptions qui ont été levées par le chargeur de classe.This exception array represents the exceptions that were thrown by the class loader. Les trous dans le tableau de classes sont alignés avec les exceptions.The holes in the class array line up with the exceptions.
Cette exception expose à la fois le tableau de classes et le tableau de TypeLoadExceptions
.This exception exposes both the array of classes and the array of TypeLoadExceptions
.
Constructeurs
ReflectionTypeLoadException(Type[], Exception[]) |
Initialise une nouvelle instance de la classe ReflectionTypeLoadException avec les classes données et les exceptions correspondantes.Initializes a new instance of the ReflectionTypeLoadException class with the given classes and their associated exceptions. |
ReflectionTypeLoadException(Type[], Exception[], String) |
Initialise une nouvelle instance de la classe ReflectionTypeLoadException avec les classes données, les exceptions correspondantes et la description des exceptions.Initializes a new instance of the ReflectionTypeLoadException class with the given classes, their associated exceptions, and exception descriptions. |
Propriétés
Data |
Obtient une collection de paires clé/valeur qui fournissent des informations définies par l'utilisateur supplémentaires sur l'exception.Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Hérité de Exception) |
HelpLink |
Obtient ou définit un lien vers le fichier d'aide associé à cette exception.Gets or sets a link to the help file associated with this exception. (Hérité de Exception) |
HResult |
Obtient ou définit HRESULT, valeur numérique codée qui est assignée à une exception spécifique.Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Hérité de Exception) |
InnerException |
Obtient l'instance Exception qui a provoqué l'exception actuelle.Gets the Exception instance that caused the current exception. (Hérité de Exception) |
LoaderExceptions |
Obtient le tableau des exceptions levées par le chargeur de classes.Gets the array of exceptions thrown by the class loader. |
Message |
Obtient le message d’erreur pour cette exception.Gets the error message for this exception. |
Message |
Obtient un message qui décrit l'exception active.Gets a message that describes the current exception. (Hérité de Exception) |
Source |
Obtient ou définit le nom de l'application ou de l'objet qui est à l'origine de l'erreur.Gets or sets the name of the application or the object that causes the error. (Hérité de Exception) |
StackTrace |
Obtient une représentation sous forme de chaîne des frames immédiats sur la pile des appels.Gets a string representation of the immediate frames on the call stack. (Hérité de Exception) |
TargetSite |
Obtient la méthode qui lève l'exception actuelle.Gets the method that throws the current exception. (Hérité de Exception) |
Types |
Obtient le tableau de classes qui ont été définies dans le module et chargées.Gets the array of classes that were defined in the module and loaded. |
Méthodes
Equals(Object) |
Détermine si l'objet spécifié est égal à l'objet actuel.Determines whether the specified object is equal to the current object. (Hérité de Object) |
GetBaseException() |
En cas de substitution dans une classe dérivée, retourne la Exception qui est à l'origine d'une ou de plusieurs exceptions ultérieures.When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Hérité de Exception) |
GetHashCode() |
Fait office de fonction de hachage par défaut.Serves as the default hash function. (Hérité de Object) |
GetObjectData(SerializationInfo, StreamingContext) |
Fournit une implémentation de ISerializable pour les objets sérialisés.Provides an ISerializable implementation for serialized objects. |
GetObjectData(SerializationInfo, StreamingContext) |
En cas de substitution dans une classe dérivée, définit SerializationInfo avec des informations sur l'exception.When overridden in a derived class, sets the SerializationInfo with information about the exception. (Hérité de Exception) |
GetType() |
Obtient le type au moment de l'exécution de l'instance actuelle.Gets the runtime type of the current instance. (Hérité de Exception) |
MemberwiseClone() |
Crée une copie superficielle du Object actuel.Creates a shallow copy of the current Object. (Hérité de Object) |
ToString() |
Retourne le nom complet de cette exception et les messages pour toutes les exceptions du chargeur.Returns the fully qualified name of this exception and the messages for all the loader exceptions. |
ToString() |
Crée et retourne une chaîne représentant l'exception actuelle.Creates and returns a string representation of the current exception. (Hérité de Exception) |
Événements
SerializeObjectState |
Se produit quand une exception est sérialisée pour créer un objet d'état d'exception qui contient des données sérialisées concernant l'exception.Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Hérité de Exception) |