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 类

 

DataSource 属性

获取数据库服务器的名称。

语法
Visual Basic

Public Overrides Readonly Property DataSource As String
C#

public override string  DataSource { get;}
注释

如果打开了连接,则 SAConnection 对象返回 ServerName 服务器属性。否则,SAConnection 对象将按以下顺序在连接字符串中查找:EngineName、ServerName、ENG。

另请参见