This documentation is archived and is not being maintained.

IClrObjectFactory.CreateFromAssembly Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Activates a remote assembly through .NET remoting, using the assembly's configuration file.

[Visual Basic]
Function CreateFromAssembly( _
   ByVal assembly As String, _
   ByVal type As String, _
   ByVal mode As String _
) As Object
object CreateFromAssembly(
   string assembly,
 string type,
 string mode
Object* CreateFromAssembly(
   String* assembly,
 String* type,
 String* mode
function CreateFromAssembly(
   assembly : String,
 type : String,
 mode : String
) : Object;


The name of the assembly to activate.
The name of the type to activate.
Not used.

Return Value

An instance of the Object representing the type, with culture, arguments, and binding and activation attributes set to a null reference (Nothing in Visual Basic), or a null reference (Nothing) if the type parameter is not found.


Exception Type Condition
SecurityException A caller in the call chain does not have permission to access unmanaged code.
COMException The class is not registered.


Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

IClrObjectFactory Interface | IClrObjectFactory Members | System.EnterpriseServices.Internal Namespace