 | JetActivatorCreateInstance(Type, TaskExecutionUtility, Object) Method |
Creates an instance of the specified type and configures it.
Namespace: Ookii.Jumbo.JetAssembly: Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static Object CreateInstance(
Type type,
TaskExecutionUtility taskExecution,
params Object[] args
)
Public Shared Function CreateInstance (
type As Type,
taskExecution As TaskExecutionUtility,
ParamArray args As Object()
) As Object
public:
static Object^ CreateInstance(
Type^ type,
TaskExecutionUtility^ taskExecution,
... array<Object^>^ args
)
static member CreateInstance :
type : Type *
taskExecution : TaskExecutionUtility *
args : Object[] -> Object
Parameters
- type Type
- The type to instantiate.
- taskExecution TaskExecutionUtility
- A TaskExecutionUtility instance that contains the configuration to use.
- args Object
- The arguments to pass to the object's constructor.
Return Value
ObjectAn 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