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

 

TryGetValue 方法

从此 SAConnectionStringBuilder 中检索与所提供的键对应的值。

语法
Visual Basic

Public Overrides Function TryGetValue( _
   ByVal keyword As String, _
   ByVal value As Object _
) As Boolean
C#

public override bool TryGetValue(
   string  keyword,
   object value
);
参数
  • keyword   要检索的项目的键。

  • value   与关键字对应的值。

返回值

如果在连接字符串内找到了关键字,则为 true;否则为 false。

另请参见