Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

OracleConnectionStringBuilder::ContainsKey Method (String^)

 

Determines whether the OracleConnectionStringBuilder contains a specific key.

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

public:
virtual bool ContainsKey(
	String^ keyword
) override

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:
© 2017 Microsoft