OdbcConnectionStringBuilder::ContainsKey Method (String^)
Determines whether the OdbcConnectionStringBuilder contains a specific key.
Assembly: System.Data (in System.Data.dll)
Parameters
- keyword
-
Type:
System::String^
The key to locate in the OdbcConnectionStringBuilder.
Return Value
Type: System::Booleantrue if the OdbcConnectionStringBuilder contains an element that has the specified key; otherwise false.
| Exception | Condition |
|---|---|
| ArgumentNullException | keyword is null (Nothing in Visual Basic). |
The following example creates an OdbcConnectionStringBuilder instance, sets some of its properties, and then tries to determine whether various keys exist within the object by calling the ContainsKey method.
Available since 2.0