Click or drag to resize

AppContextLoadComponent Method

Finds the specified component in the application's Components collection, loads it, verfies that it implements the requested interface (if specified), and returns the object. Normally an appropriate AssemblyLoadFail exception will be thrown if the component could not be found, loaded or requested interface obtained for any reason. However, if OkIfNotFound is set a failure will suppress any such error and result in null being returned.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public Object LoadComponent(
	string componentName,
	string interfaceName,
	ComponentLoadOptions options
)

Parameters

componentName
Type: SystemString
The name of the component to load.
interfaceName
Type: SystemString
The requested interface that the object should implement, optional.
options
Type: NetQuarryComponentLoadOptions
Options from ComponentLoadOptions affecting the load.

Return Value

Type: Object
The loaded component or null if the component could not be loaded and OkIfNotFound is set.

Implements

IAppContextLoadComponent(String, String, ComponentLoadOptions)
See Also