Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - .NET Programming » UltraLite .NET 2.0 API Reference » ULConnectionStringBuilder class

Remove method Next Page

TryGetValue method

Retrieves a value corresponding to the supplied key from this ULConnectionStringBuilder.


Visual Basic

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


public override bool TryGetValue(
string keyword,
object value

Return value

True if keyword was found within the connection string, false otherwise.


The TryGetValue method lets developers safely retrieve a value from a ULConnectionStringBuilder without needing to first call the ContainsKey method. Because TryGetValue does not raise an exception when you call it, passing in a nonexistent key, you do not have to look for a key before retrieving its value. Calling TryGetValue with a nonexistent key will place the null value (Nothing in Visual Basic) in the value parameter.

See also