Click or drag to resize

JetActivatorCreateInstance Method (Type, TaskExecutionUtility, Object)

Creates an instance of the specified type and configures it.

Namespace:  Ookii.Jumbo.Jet
Assembly:  Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntax
public static Object CreateInstance(
	Type type,
	TaskExecutionUtility taskExecution,
	params Object[] args
)

Parameters

type
Type: SystemType
The type to instantiate.
taskExecution
Type: Ookii.Jumbo.JetTaskExecutionUtility
A TaskExecutionUtility instance that contains the configuration to use.
args
Type: SystemObject
The arguments to pass to the object's constructor.

Return Value

Type: Object
An instance of the specified type with the configuration applied to it.
Remarks

This function instantiates the type specified in type, then checks if the object implements IConfigurable and if so, applies the configuration to it.

See Also