Επεξεργασία

Κοινή χρήση μέσω


OleDbConnectionStringBuilder Constructors

Definition

Initializes a new instance of the OleDbConnectionStringBuilder class.

Overloads

OleDbConnectionStringBuilder()

Initializes a new instance of the OleDbConnectionStringBuilder class.

OleDbConnectionStringBuilder(String)

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

OleDbConnectionStringBuilder()

Source:
OleDbConnectionStringBuilder.cs
Source:
OleDbConnectionStringBuilder.cs
Source:
OleDbConnectionStringBuilder.cs

Initializes a new instance of the OleDbConnectionStringBuilder class.

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

See also

Applies to

OleDbConnectionStringBuilder(String)

Source:
OleDbConnectionStringBuilder.cs
Source:
OleDbConnectionStringBuilder.cs
Source:
OleDbConnectionStringBuilder.cs

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

public:
 OleDbConnectionStringBuilder(System::String ^ connectionString);
public OleDbConnectionStringBuilder (string? connectionString);
public OleDbConnectionStringBuilder (string connectionString);
new System.Data.OleDb.OleDbConnectionStringBuilder : string -> System.Data.OleDb.OleDbConnectionStringBuilder
Public Sub New (connectionString As String)

Parameters

connectionString
String

The basis for the object's internal connection information. Parsed into key/value pairs.

Exceptions

The connection string is incorrectly formatted (perhaps missing the required "=" within a key/value pair).

Remarks

Setting the Provider property, either directly (by setting the ConnectionString property) or by passing a connection string as a parameter to the constructor, might affect the set of key/value pairs that are contained within the OleDbConnectionStringBuilder instance. Setting the Provider property to "sqloledb," for example, adds all the standard SQL connection string properties.

For some providers, assigning a connection string within the OleDbConnectionStringBuilder constructor causes the order of supplied key/value pairs to be rearranged.

See also

Applies to