Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Activator.CreateInstance Method

 

Creates an instance of the specified type using the constructor that best matches the specified parameters.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(ActivationContext)

Creates an instance of the type designated by the specified ActivationContext object.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(ActivationContext, String[])

Creates an instance of the type that is designated by the specified ActivationContext object and activated with the specified custom activation data.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(AppDomain, String, String)

Creates an instance of the type whose name is specified in the specified remote domain, using the named assembly and default constructor.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(AppDomain, String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[])

Creates an instance of the type whose name is specified in the specified remote domain, using the named assembly and the constructor that best matches the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(AppDomain, String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

Obsolete.Creates an instance of the type whose name is specified in the specified remote domain, using the named assembly and the constructor that best matches the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(String, String)

Creates an instance of the type whose name is specified, using the named assembly and default constructor.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[])

Creates an instance of the type whose name is specified, using the named assembly and the constructor that best matches the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[], Evidence)

Obsolete.Creates an instance of the type whose name is specified, using the named assembly and the constructor that best matches the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(String, String, Object[])

Creates an instance of the type whose name is specified, using the named assembly and default constructor.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(Type)

Creates an instance of the specified type using that type's default constructor.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(Type, BindingFlags, Binder, Object[], CultureInfo)

Creates an instance of the specified type using the constructor that best matches the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(Type, BindingFlags, Binder, Object[], CultureInfo, Object[])

Creates an instance of the specified type using the constructor that best matches the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(Type, Boolean)

Creates an instance of the specified type using that type's default constructor.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(Type, Object[])

Creates an instance of the specified type using the constructor that best matches the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(Type, Object[], Object[])

Creates an instance of the specified type using the constructor that best matches the specified parameters.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance<T>()

Creates an instance of the type designated by the specified generic type parameter, using the parameterless constructor.

Return to top
Show:
© 2016 Microsoft