Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
向集合中添加一个 ULParameter 对象。
Public Overrides Function Add(ByVal value As Object) As Integer
public override int Add(object value)
value 要添加到集合中的 ULParameter 对象。
新 ULParameter 对象的索引。
ArgumentNullException 值不能为空(在 Visual Basic 中为 Nothing)。
InvalidCastException 指定的值必须为 ULParameter 对象。
ArgumentException 只能向集合添加一次 ULParameter 对象。
集合中的所有参数将被视为定位参数,并且必须按照 ULCommand.CommandText 值中相应问号占位符的顺序添加到集合中。例如,集合中的第一个参数对应 SQL 语句中的第一个问号,集合中的第二个参数对应 SQL 语句中的第二个问号,依此类推。ULCommand.CommandText 值中问号的个数必须至少与集合中参数的个数相同。以空值替代缺少的参数。