OracleConnectionStringBuilder.ContainsKey Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines whether the OracleConnectionStringBuilder contains a specific key.

Namespace:   System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

override ContainsKey : 
        keyword:string -> bool

Parameters

keyword
Type: System.String

The key to locate in the OracleConnectionStringBuilder.

Return Value

Type: System.Boolean

true 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: