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)

Returns the class by the given name, performing a case-sensitive search.

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

Parameters

className
The name of the class to locate. The name must be fully qualified with the namespace.

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 if className is null.
TargetInvocationException if the class initializers are invoked and an exception is thrown.

See Also

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