Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
向集合中添加一个用指定的参数名和数据类型创建的新 ULParameter 对象。
Public Function Add( ByVal parameterName As String, ByVal ulDbType As ULDbType ) As ULParameter
public ULParameter Add(string parameterName, ULDbType ulDbType)
parameterName 参数的名称。对于未命名参数,请使用一个空字符串 ("") 或空值引用(在 Visual Basic 中为 Nothing)作为其值。在 UltraLite.NET 中,ULCommand 对象不使用参数名。
ulDbType iAnywhere.Data.UltraLite.ULDbType 值之一。
新 ULParameter 对象。
集合中的所有参数将被视为定位参数,并且必须按照 ULCommand.CommandText 值中相应问号占位符的顺序添加到集合中。例如,集合中的第一个参数对应 SQL 语句中的第一个问号,集合中的第二个参数对应 SQL 语句中的第二个问号,依此类推。ULCommand.CommandText 值中问号的个数必须至少与集合中参数的个数相同。以空值替代缺少的参数。