This documentation is archived and is not being maintained.

Assembly.CreateInstance Method

Locates a type from this assembly and creates an instance of it using the system activator.

Overload List

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

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function CreateInstance(String) As Object
[C#] public object CreateInstance(string);
[C++] public: Object* CreateInstance(String*);
[JScript] public function CreateInstance(String) : Object;

Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search.

[Visual Basic] Overloads Public Function CreateInstance(String, Boolean) As Object
[C#] public object CreateInstance(string, bool);
[C++] public: Object* CreateInstance(String*, bool);
[JScript] public function CreateInstance(String, Boolean) : Object;

Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search and having the specified culture, arguments, and binding and activation attributes.

[Visual Basic] Overloads Public Function CreateInstance(String, Boolean, BindingFlags, Binder, Object(), CultureInfo, Object()) As Object
[C#] public object CreateInstance(string, bool, BindingFlags, Binder, object[], CultureInfo, object[]);
[C++] public: Object* CreateInstance(String*, bool, BindingFlags, Binder*, Object[], CultureInfo*, Object[]);
[JScript] public function CreateInstance(String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[]) : Object;

See Also

Assembly Class | Assembly Members | System.Reflection Namespace

Show: