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!

AppDomain.CreateInstance

Creates an instance of a specified type defined in the specified assembly file.

Overload List

Instantiate the specified type defined in the specified assembly.

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

Instantiate the specified type defined in the specified assembly with the supplied arguments to the type constructor, optionally ignoring the case of the assembly name and the type name, using the specified binder and binding flags. Optionally, the loaded assembly can be shared across application domains. A set of activation attributes can be supplied and evidence can be supplied.

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

Instantiate the specified type defined in the specified assembly. Optionally, the loaded assembly can be shared across application domains. A set of activation attributes can be supplied and evidence can be supplied.

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

Instantiate the specified type defined in the specified assembly and optionally specifying whether the assembly is to be shared across application domains.

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

See Also

AppDomain Class | AppDomain Members | System Namespace