Прочетете на английски Редактиране

Споделяне чрез


OdbcConnectionStringBuilder Constructors

Definition

Initializes a new instance of the OdbcConnectionStringBuilder class.

Overloads

OdbcConnectionStringBuilder()

Initializes a new instance of the OdbcConnectionStringBuilder class.

OdbcConnectionStringBuilder(String)

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

OdbcConnectionStringBuilder()

Source:
OdbcConnectionStringbuilder.cs
Source:
OdbcConnectionStringbuilder.cs
Source:
OdbcConnectionStringbuilder.cs

Initializes a new instance of the OdbcConnectionStringBuilder class.

C#
public OdbcConnectionStringBuilder();

See also

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

OdbcConnectionStringBuilder(String)

Source:
OdbcConnectionStringbuilder.cs
Source:
OdbcConnectionStringbuilder.cs
Source:
OdbcConnectionStringbuilder.cs

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

C#
public OdbcConnectionStringBuilder(string? connectionString);
C#
public OdbcConnectionStringBuilder(string connectionString);

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

You can pass a connection string in the constructor, or you can set the ConnectionString property explicitly. The behavior is the same either way.

See also

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)