Creates a handle to an object using the name of the type and the assembly where it exists. This allows types to be created remotely without having to load the type locally. These will return an ObjectHandle that needs to be unwrapped in order to access the real object.
[Visual Basic] Overloads Public Shared Function CreateInstance( _ ByVal assemblyName As String, _ ByVal typeName As String, _ ByVal shared As Boolean _ ) As ObjectHandle [C#] public static ObjectHandle CreateInstance( string assemblyName, string typeName, bool shared ); [C++] public: static ObjectHandle* CreateInstance( String* assemblyName, String* typeName, bool shared ); [JScript] public static function CreateInstance( assemblyName : String, typeName : String, shared : Boolean ) : ObjectHandle;
A handle to the requested object.
Activator Class | Activator Members | System Namespace | Activator.CreateInstance Overload List