OracleConnectionStringBuilder::ContainsKey Method (String^)
Determines whether the OracleConnectionStringBuilder contains a specific key.
Assembly: System.Data.OracleClient (in System.Data.OracleClient.dll)
Parameters
- keyword
-
Type:
System::String^
The key to locate in the OracleConnectionStringBuilder.
Return Value
Type: System::Booleantrue if the OracleConnectionStringBuilder contains an element that has the specified key; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | keyword is null (Nothing in Visual Basic) |
Because the OracleConnectionStringBuilder contains a fixed-size collection of key/value pairs, the ContainsKey method determines only if a particular key name is valid.
The following example creates an OracleConnectionStringBuilder 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