OdbcConnectionStringBuilder Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
Initializes a new instance of the OdbcConnectionStringBuilder class.
public:
OdbcConnectionStringBuilder();
public OdbcConnectionStringBuilder ();
Public Sub New ()
See also
Applies to
OdbcConnectionStringBuilder(String)
Initializes a new instance of the OdbcConnectionStringBuilder class. The provided connection string provides the data for the instance's internal connection information.
public:
OdbcConnectionStringBuilder(System::String ^ connectionString);
public OdbcConnectionStringBuilder (string? connectionString);
public OdbcConnectionStringBuilder (string connectionString);
new System.Data.Odbc.OdbcConnectionStringBuilder : string -> System.Data.Odbc.OdbcConnectionStringBuilder
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
You can pass a connection string in the constructor, or you can set the ConnectionString property explicitly. The behavior is the same either way.