Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
Activator Class
Activator Methods
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Activator..::.CreateInstance Method

Updated: November 2007

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

  NameDescription
CreateInstance<(Of <(T>)>)()()() Creates an instance of the type designated by the specified generic type parameter.
CreateInstance(ActivationContext) Creates an instance of the type designated by the specified ActivationContext object.
CreateInstance(Type) Creates an instance of the specified type using that type's default constructor.
CreateInstance(AppDomain, String, String, Boolean, BindingFlags, Binder, array<Object>[]()[], CultureInfo, array<Object>[]()[], Evidence) 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.
CreateInstance(ActivationContext, array<String>[]()[]) Creates an instance of the type that is designated by the specified ActivationContext object and activated with the specified custom activation data.
CreateInstance(String, String) Creates an instance of the type whose name is specified, using the named assembly and default constructor.
CreateInstance(Type, Boolean) Creates an instance of the specified type using that type's default constructor.
CreateInstance(Type, array<Object>[]()[]) Creates an instance of the specified type using the constructor that best matches the specified parameters.
CreateInstance(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.
CreateInstance(String, String, array<Object>[]()[]) Creates an instance of the type whose name is specified, using the named assembly and default constructor.
CreateInstance(Type, array<Object>[]()[], array<Object>[]()[]) Creates an instance of the specified type using the constructor that best matches the specified parameters.
CreateInstance(Type, BindingFlags, Binder, array<Object>[]()[], CultureInfo) Creates an instance of the specified type using the constructor that best matches the specified parameters.
CreateInstance(Type, BindingFlags, Binder, array<Object>[]()[], CultureInfo, array<Object>[]()[]) Creates an instance of the specified type using the constructor that best matches the specified parameters.
CreateInstance(String, String, Boolean, BindingFlags, Binder, array<Object>[]()[], CultureInfo, array<Object>[]()[], Evidence) Creates an instance of the type whose name is specified, using the named assembly and the constructor that best matches the specified parameters.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker