Module.GetTypes Metodo
Definizione
Restituisce tutti i tipi definiti in questo modulo.Returns all the types defined within this module.
public:
virtual cli::array <Type ^> ^ GetTypes();
public virtual Type[] GetTypes ();
abstract member GetTypes : unit -> Type[]
override this.GetTypes : unit -> Type[]
Public Overridable Function GetTypes () As Type()
Restituisce
- Type[]
Matrice di tipo Type
contenente i tipi definiti all'interno del modulo riflesso da questa istanza.An array of type Type
containing types defined within the module that is reflected by this instance.
Eccezioni
Non è stato possibile caricare una o più classi in un modulo.One or more classes in a module could not be loaded.
Il chiamante non dispone dell'autorizzazione richiesta.The caller does not have the required permission.
Commenti
ReflectionTypeLoadException
eccezione di caricamento speciale.ReflectionTypeLoadException
is a special load exception. La ReflectionTypeLoadException.Types
proprietà contiene la matrice di tipi definiti nel modulo e caricati.The ReflectionTypeLoadException.Types
property contains the array of types that were defined in the module and were loaded. Questa matrice può contenere alcuni valori null.This array may contain some null values. La ReflectionTypeLoadException.LoaderExceptions
proprietà è una matrice di eccezioni che rappresentano le eccezioni generate dal caricatore.The ReflectionTypeLoadException.LoaderExceptions
property is an array of exceptions that represent the exceptions that were thrown by the loader. I buchi nella matrice di classi si allineano con le eccezioni.The holes in the class array line up with the exceptions.
Se, ad esempio, gli inizializzatori di classe di una delle classi generano un'eccezione durante il caricamento, un oggetto TargetInvocationException
viene archiviato nell'elemento corrispondente della LoaderExceptions
matrice.For example, if the class initializers of one of the classes throws an exception while it is being loaded, a TargetInvocationException
is stored in the corresponding element of the LoaderExceptions
array.
Nota
Se un tipo è stato inviato a un altro assembly, non è incluso nella matrice restituita.If a type has been forwarded to another assembly, it is not included in the returned array. Per informazioni sull'invio dei tipi, vedere invio di tipi in Common Language Runtime.For information on type forwarding, see Type Forwarding in the Common Language Runtime.