Mono Class Library: System.Reflection.Assembly Overview | Members

System.Reflection.Assembly.CreateInstance Method

Locates the specified type from this assembly and creates an instance of it using case-sensitive search.

public object CreateInstance (string typeName)

Parameters

typeName
The name of the type to locate.

Returns

An instance of Object representing the type, or null if typeName is not found.

Exceptions

TypeReason
ArgumentExceptiontypeName is the empty string ("") or "\0anything".
ArgumentNullExceptiontypeName is null.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0