_AppDomain.CreateInstanceFrom Method (String, String)
Assembly: mscorlib (in mscorlib.dll)
function CreateInstanceFrom ( assemblyFile : String, typeName : String ) : ObjectHandle
The name, including the path, of a file that contains an assembly that defines the requested type. The assembly is loaded using the LoadFrom method.
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the Type.FullName property.
Return ValueAn object that is a wrapper for the new instance, or a null reference (Nothing in Visual Basic) if typeName is not found. The return value needs to be unwrapped to access the real object.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.