Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System
Activator Class
Activator Methods

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

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

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

Name Description
Activator.CreateInstance (ActivationContext) Creates an instance of the type designated by the specified ActivationContext object.
Activator.CreateInstance (Type) Creates an instance of the specified type using the constructor that best matches the specified parameter.

Supported by the .NET Compact Framework.

Activator.CreateInstance (ActivationContext, String[]) Creates an instance of the type designated by the specified ActivationContext object and activated with the specified custom activation data.
Activator.CreateInstance (String, String) Creates an instance of the type whose name is specified, using the named assembly and default constructor.
Activator.CreateInstance (Type, Boolean) Creates an instance of the specified type using the constructor that best matches the specified parameters.
Activator.CreateInstance (Type, Object[]) Creates an instance of the specified type using the constructor that best matches the specified parameters.
Activator.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.
Activator.CreateInstance (String, String, Object[]) Creates an instance of the type whose name is specified, using the named assembly and default constructor.
Activator.CreateInstance (Type, Object[], Object[]) Creates an instance of the specified type using the constructor that best matches the specified parameters.
Activator.CreateInstance (Type, BindingFlags, Binder, Object[], CultureInfo) Creates an instance of the specified type using the constructor that best matches the specified parameters.
Activator.CreateInstance (Type, BindingFlags, Binder, Object[], CultureInfo, Object[]) Creates an instance of the specified type using the constructor that best matches the specified parameters.
Activator.CreateInstance (String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, 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.
Activator.CreateInstance (AppDomain, String, String, Boolean, BindingFlags, Binder, Object[], CultureInfo, 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.
Activator.CreateInstance () Creates an instance of the type designated by the specified generic type parameter.

Supported by the .NET Compact Framework.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker