This method assigns an array of values to an array of IDataParameters
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
protected void AssignParameterValues( IDataParameter[] commandParameters, Object[] parameterValues ) |
Visual Basic |
---|
Protected Sub AssignParameterValues ( commandParameters As IDataParameter(), parameterValues As Object() ) |
Parameters
- commandParameters
- Type: array<System.Data..::..IDataParameter>[]()[][]
Array of IDataParameters to be assigned values
- parameterValues
- Type: array<System..::..Object>[]()[][]
Array of objects holding the values to be assigned
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | Thrown if an incorrect number of parameters are passed. |