Class MySqlBaseConnectionStringBuilder
Abstract class that provides common functionality for connection options that apply for all protocols.
Inheritance
MySqlBaseConnectionStringBuilder
Assembly: MySql.Data.dll
Version: 8.0.32
Syntax
public abstract class MySqlBaseConnectionStringBuilder : DbConnectionStringBuilder, IDictionary, ICollection, IEnumerable, ICustomTypeDescriptor
Properties
CertificateFile
Gets or sets the path to the certificate file to be used.
Declaration
public string CertificateFile { get; set; }
Property Value
CertificatePassword
Gets or sets the password to be used in conjunction with the certificate file.
Declaration
public string CertificatePassword { get; set; }
Property Value
CertificateStoreLocation
Gets or sets the location to a personal store where a certificate is held.
Declaration
public MySqlCertificateStoreLocation CertificateStoreLocation { get; set; }
Property Value
CertificateThumbprint
Gets or sets a certificate thumbprint to ensure correct identification of a certificate contained within a personal store.
Declaration
public string CertificateThumbprint { get; set; }
Property Value
CharacterSet
Gets or sets the character set that should be used for sending queries to the server.
Declaration
public string CharacterSet { get; set; }
Property Value
ConnectionProtocol
Gets or sets the protocol that should be used for communicating
with MySQL.
Declaration
public MySqlConnectionProtocol ConnectionProtocol { get; set; }
Property Value
Database
Gets or sets the name of the database for the initial connection.
Declaration
public string Database { get; set; }
Property Value
DnsSrv
Gets or sets a boolean value that indicates whether this connection
should resolve DNS SRV records.
Declaration
public bool DnsSrv { get; set; }
Property Value
Keepalive
Gets or sets the idle connection time(seconds) for TCP connections.
Declaration
public uint Keepalive { get; set; }
Property Value
Password
Gets or sets the password that should be used to make a connection.
Declaration
public string Password { get; set; }
Property Value
Password2
Gets or sets the password for a second authentication that should be used to make a connection.
Declaration
public string Password2 { get; set; }
Property Value
Password3
Gets or sets the password for a third authentication that should be used to make a connection.
Declaration
public string Password3 { get; set; }
Property Value
Port
Gets or sets the port number that is used when the socket
protocol is being used.
Declaration
public uint Port { get; set; }
Property Value
Server
Gets or sets the name of the server.
Declaration
public string Server { get; set; }
Property Value
Type |
Description |
String |
The server.
|
SslCa
Declaration
public string SslCa { get; set; }
Property Value
SslCert
Gets or sets the path to a local certificate file in PEM format to use for establishing an encrypted connection.
Declaration
public string SslCert { get; set; }
Property Value
SslKey
Gets or sets the path to a local key file in PEM format to use for establishing an encrypted connection.
Declaration
public string SslKey { get; set; }
Property Value
SslMode
Indicates whether to use SSL connections and how to handle server certificate errors.
Declaration
public MySqlSslMode SslMode { get; set; }
Property Value
TlsVersion
Declaration
public string TlsVersion { get; set; }
Property Value
Examples
Tls version=TLSv1.2,TLSv1.3;
UserID
Gets or sets the user ID that should be used to connect with.
Declaration
public string UserID { get; set; }
Property Value
Methods
GetConnectionString(Boolean)
Declaration
public string GetConnectionString(bool includePass)
Parameters
Type |
Name |
Description |
Boolean |
includePass |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
TryGetValue(String, out Object)
Declaration
public abstract override bool TryGetValue(string keyword, out object value)
Parameters
Returns
Overrides
Implements