This topic has not yet been rated - Rate this topic

IClrObjectFactory.CreateFromAssembly Method

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

Namespace: System.EnterpriseServices.Internal
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)

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
Not applicable.

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 in Visual Basic) if the type parameter is not found.
Exception typeCondition

SecurityException

A caller in the call chain does not have permission to access unmanaged code.

COMException

The class is not registered.

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 Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.