Returns all the classes defined within this module.
[Visual Basic] Public Function GetTypes() As Type () [C#] public Type[] GetTypes(); [C++] public: Type* GetTypes() []; [JScript] public function GetTypes() : Type[];
Returns an array of classes defined within the module that is reflected by this instance.
Exception Type | Condition |
---|---|
ReflectionTypeLoadException | Any class in a module is unable to be loaded. This is a special class load exception. It contains the array of classes (Types property) that were defined in the module and were loaded. This array may contain some null values. There is also another array of exceptions (LoaderExceptions property). This array represents the exceptions that were thrown by the class loader. The holes in the class array line up with the exceptions.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. |
SecurityException | The caller does not have the required permission. |
[To be supplied.]
NGWS Runtime Security:
ReflectionPermission | Reflection permission for the current module. |