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.GetType (String, Boolean)

Returns the class by the given name, searching the module with the specified case sensitivity.

[Visual Basic]
Overloads Public Function GetType( _
   ByVal className As String, _
   ByVal ignoreCase As Boolean _
) As Type
[C#]
public Type GetType(
   string className,
   bool ignoreCase
);
[C++]
public: Type* GetType(
   String* className,
   bool ignoreCase
);
[JScript]
public function GetType(
   className : String,
   ignoreCase : Boolean
) : Type;

Parameters

className
The name of the class to locate. The name must be fully qualified with the namespace.
ignoreCase
If ignoreCase is true then the search for className is case-insensitive; otherwise the search is case-sensitive.

Return Value

Value Condition
A Type object representing the given classname. The classname is located in this Module.
null Otherwise.

Exceptions

Exception Type Condition
ArgumentException className is a null reference (in Visual Basic Nothing).
TargetInvocationException The class initializers are invoked and an exception is thrown.

See Also

Module Class | Module Members | System.Reflection Namespace | Module.GetType Overload List