RdmParameter(string, Object) Constructor

Syntax:

public RdmParameter(string parameterName, Object value)

Description:

A constructor for the RdmParameter class where the parameter name and value are specified. An association with an RdmCommand needs to be made before the new parameter object is useful.

Parameters:

parameterName

Type: System.String

The new parameter's name.

value

Type: System.Object

The value of the new parameter. The type of the parameter will be inferred from the type of the Object.

Exceptions:

Exception Condition
ArgumentNullException The specified value is null.
ArgumentException The value is DBNull.Value but the parameter is not nullable
ArgumentException The type of value is not an anticipated type