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
[C#]
object CreateFromAssembly(
   string assembly,
 string type,
 string mode
);
[C++]
Object* CreateFromAssembly(
   String* assembly,
 String* type,
 String* mode
);
[JScript]
function CreateFromAssembly(
   assembly : String,
 type : String,
 mode : String
) : Object;

Parameters

assembly
The name of the assembly to activate.
type
The name of the type to activate.
mode
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.

Exceptions

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

Requirements

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

Show: