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
)
Public Shared Function LoadComponent (
assemblyPathAndName As String,
className As String,
interfaceName As String,
domain As AppDomain,
okIfNotFound As Boolean
) As Object
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:
ObjectAn instance of the requested class or null
See Also