NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Module.GetTypes

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[];

Return Value

Returns an array of classes defined within the module that is reflected by this instance.

Exceptions

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.

Remarks

[To be supplied.]

Requirements

NGWS Runtime Security:

ReflectionPermission Reflection permission for the current module.

See Also

Module Class | Module Members | System.Reflection Namespace