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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SACommand 类

 

CommandTimeout 属性

获取或设置终止执行命令的尝试并生成错误之前等待的时间(以秒为单位)。

语法
Visual Basic

Public Overrides Property CommandTimeout As Integer
C#

public override int CommandTimeout { get; set; }
属性值

缺省值为 30 秒。

注释

值为 0 表示没有限制。应该避免使用该值,因为这可能会导致执行命令的尝试进行无限期的等待。

另请参见