Export (0) Print
Expand All

OracleConnectionStringBuilder.ContainsKey Method

Determines whether the OracleConnectionStringBuilder contains a specific key.

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

abstract ContainsKey : 
        keyword:string -> bool  
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.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft