Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
初始化 SAConnectionStringBuilder 类的一个新实例。
Public Sub New(ByVal connectionString As String)
public SAConnectionStringBuilder(string connectionString)
connectionString 对象的内部连接信息的基础。分解为 "关键字=值" 对。有关连接参数的列表,请参见连接参数。
无法在 .NET Compact Framework 2.0 中使用 SAConnectionStringBuilder 类。
以下语句为到名为 policies 的数据库的连接初始化一个 SAConnection 对象,该数据库在名为 hr 的 SQL Anywhere 数据库服务器上运行。该连接使用的用户 ID 为 admin,口令为 money。
SAConnectionStringBuilder conn = new SAConnectionStringBuilder( "UID=admin;PWD=money;SERVER=hr;DBN=policies" );