DotNetModule.Execute
- Updated2024-10-09
- 1 minute(s) read
DotNetModule.Execute
Syntax
DotNetModule.Execute( sequenceContextParam, argumentsParam)
Purpose
Use this method to call a .NET code module directly without using a step, sequence, or execution.
Remarks
When you call a .NET code module using this method, you can evaluate the parameter expressions to determine the argument values or specify the argument values directly using a DotNetModuleArguments collection.
To use the parameter value expressions, pass a valid SequenceContext object to the sequenceContextParam parameter to evaluate the DotNetParameter.ValueExpr expressions.
To pass specific argument values, use the DotNetModule.NewModuleArguments method to create a collection of DotNetArguments objects. Each DotNetArguments object in the collection is itself a collection of DotNetArgument objects that represents the arguments to pass to the corresponding DotNetCall object in the collection the DotNetModule.Calls property returns. Set the DotNetArgument.Value property on each item in the DotNetArguments collection to the argument value you want to pass to the DotNetCall object.
Parameters
sequenceContextParam As SequenceContext
[In] Specifies the SequenceContext object this method uses to evaluate each of the DotNetParameter.ValueExpr expressions in the module parameters. Pass NULL for this parameter if you pass a DotNetModuleArguments collection to the argumentsParam parameter.
argumentsParam As DotNetModuleArguments
[In] Specifies the collection of argument collections that contain the argument values to pass to each DotNetCall object. Pass NULL for this parameter to pass the values obtained from evaluating each of the DotNetParameter.ValueExpr expressions in the module parameters.