Redigera

Dela via


OracleConnectionStringBuilder Constructors

Definition

Initializes a new instance of the OracleConnectionStringBuilder class.

Overloads

OracleConnectionStringBuilder()

Initializes a new instance of the OracleConnectionStringBuilder class.

OracleConnectionStringBuilder(String)

Initializes a new instance of the OracleConnectionStringBuilder class. The provided connection string provides the data for the instance's internal connection information.

OracleConnectionStringBuilder()

Initializes a new instance of the OracleConnectionStringBuilder class.

public:
 OracleConnectionStringBuilder();
public OracleConnectionStringBuilder ();
Public Sub New ()

See also

Applies to

OracleConnectionStringBuilder(String)

Initializes a new instance of the OracleConnectionStringBuilder class. The provided connection string provides the data for the instance's internal connection information.

public:
 OracleConnectionStringBuilder(System::String ^ connectionString);
public OracleConnectionStringBuilder (string connectionString);
new System.Data.OracleClient.OracleConnectionStringBuilder : string -> System.Data.OracleClient.OracleConnectionStringBuilder
Public Sub New (connectionString As String)

Parameters

connectionString
String

The basis for the object's internal connection information. Parsed into name/value pairs. Invalid key names raise a KeyNotFoundException.

Exceptions

Invalid key name within the connection string.

Invalid value within the connection string (specifically, when a Boolean or numeric value was expected but not supplied).

Remarks

The OracleConnectionStringBuilder class provides a fixed internal collection of key/value pairs. Even if you supply only a small subset of the possible connection string values in the constructor, the object always provides default values for each key/value pair. When the ConnectionString property of the object is retrieved, the string contains only key/value pairs in which the value is different from the default value for the item.

See also

Applies to