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!

Assembly.GetType (String, Boolean)

Gets the Type object with the specified name and optionally throws an exception on exception.

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

Parameters

name
The full name of the type.
throwOnError
true to throw an exception if the type is not found. Otherwise, return null.

Return Value

A Type object that represents the specified class.

Exceptions

Exception Type Condition
ArgumentNullException if name is null.

See Also

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