Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
从此 ULConnectionStringBuilder 中检索与所提供的键对应的值。
Public Overrides Function TryGetValue( ByVal keyword As String, ByVal value As Object ) As Boolean
public override bool TryGetValue(string keyword, out Object value)
keyword 要检索的项目的键。
value 与键对应的值。
如果在连接字符串内找到了关键字,则为 true;否则为 false。
利用 TryGetValue 方法,开发人员无需首先调用 ContainsKey 方法即可从 ULConnectionStringBuilder 安全地检索值。由于在调用 TryGetValue 时即使传入不存在的键也不会抛出异常,因此不必在检索其值之前查找键。以不存在的键调用 TryGetValue 会将空值(在 Visual Basic 中为 Nothing)置于 value 参数中。