Export (0) Print
Expand All

AppDomain.CreateInstance Method

Creates a new instance of a specified type defined in a specified assembly.

Overload List

Creates a new instance of the specified type defined in the specified assembly.

[Visual Basic] Overloads Public Overridable Function CreateInstance(String, String) As ObjectHandle Implements _AppDomain.CreateInstance
[C#] public virtual ObjectHandle CreateInstance(string, string);
[C++] public: virtual ObjectHandle* CreateInstance(String*, String*);
[JScript] public function CreateInstance(String, String) : ObjectHandle;

Creates a new instance of the specified type defined in the specified assembly. A parameter specifies an array of activation attributes.

[Visual Basic] Overloads Public Overridable Function CreateInstance(String, String, Object()) As ObjectHandle Implements _AppDomain.CreateInstance
[C#] public virtual ObjectHandle CreateInstance(string, string, object[]);
[C++] public: virtual ObjectHandle* CreateInstance(String*, String*, Object[]);
[JScript] public function CreateInstance(String, String, Object[]) : ObjectHandle;

Creates a new instance of the specified type defined in the specified assembly. Parameters specify a binder, binding flags, constructor arguments, culture-specific information used to interpret arguments, activation attributes, and authorization to create the type.

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

See Also

AppDomain Class | AppDomain Members | System Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft