Click or drag to resize

EAPUtilLoadComponent Method (String, String, String, AppDomain, Boolean)

Load a component DLL into the specified AppDomain.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static Object LoadComponent(
	string assemblyPathAndName,
	string className,
	string interfaceName,
	AppDomain domain,
	bool okIfNotFound
)

Parameters

assemblyPathAndName
Type: SystemString
The assembly in which the component resides.
className
Type: SystemString
The class to load.
interfaceName
Type: SystemString
The interface to access.
domain
Type: SystemAppDomain
The domain into which to load.
okIfNotFound
Type: SystemBoolean
When set a null object will be returned if the component could not be loaded for any reason. When not set, an appropriate AssemblyLoadFail exception will be thrown if the component could not be loaded for any reason.

Return Value

Type: Object
An instance of the requested class or null
See Also