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) » SAConnection 类

 

Close 方法

关闭数据库连接。

语法
Visual Basic

Public Overrides Sub Close()
C#

public override void Close();
注释

Close 方法会回退所有待执行的事务。然后它会将连接释放到连接池,如果连接池被禁用,则关闭连接。如果处理 StateChange 事件时调用 Close,则不会触发任何其它 StateChange 事件。应用程序可以多次调用 Close。

另请参见