Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULCommand 类

 

CreateParameter 方法

提供 ULParameter 对象来为 ULCommand 对象提供参数。

语法
Visual Basic
Public Function CreateParameter() As ULParameter
C#
public ULParameter CreateParameter();
返回值

ULParameter 对象形式的新参数。

注释

某些 SQL 语句可以带参数,这些参数在语句文本中以问号 (?) 表示。CreateParameter 方法提供一个 ULParameter 对象。您可以设置 ULParameter 中的属性来为该参数指定值。

这是 System.Data.IDbCommand.CreateParameter 和 System.Data.Common.DbCommand.CreateParameter 的强类型版本。

另请参见