[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, and the name of the type.
Assembly: mscorlib (in mscorlib.dll)
Return ValueType: System..::..Object
An instance of the object specified by typeName.
assemblyName or typeName is nullNothingnullptrunita null reference (Nothing in Visual Basic).
No matching public constructor was found.
typename was not found in assemblyName.
assemblyName was not found.
The caller does not have permission to call this constructor.
The operation is attempted on an unloaded application domain.
assemblyName is not a valid assembly.
Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version.
An assembly or module was loaded twice with two different evidences.
This is a convenience method that combines and . This method calls the default constructor for typeName.
If you make an early-bound call to a method M of an object of type T1 that was returned by , and that method makes an early-bound call to a method of an object of type T2 in an assembly C other than the current assembly or the assembly containing T1, assembly C is loaded into the current application domain. This loading occurs even if the early-bound call to T1.M() was made in the body of a , or in other dynamically generated code. If the current domain is the default domain, assembly C cannot be unloaded until the process ends. If the current domain later attempts to load assembly C, the load might fail.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.