Click or drag to resize

MySqlBaseConnectionStringBuilder Class

Abstract class that provides common functionality for connection options that apply for all protocols.
Inheritance Hierarchy

Namespace:  MySql.Data.MySqlClient
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.22
Syntax
public abstract class MySqlBaseConnectionStringBuilder : DbConnectionStringBuilder

The MySqlBaseConnectionStringBuilder type exposes the following members.

Constructors
  NameDescription
Protected methodMySqlBaseConnectionStringBuilder
Initializes a new instance of the MySqlBaseConnectionStringBuilder class
Top
Properties
  NameDescription
Public propertyBrowsableConnectionString
Gets or sets a value that indicates whether the ConnectionString property is visible in Visual Studio designers.
(Inherited from DbConnectionStringBuilder.)
Public propertyCertificateFile
Gets or sets the path to the certificate file to be used.
Public propertyCertificatePassword
Gets or sets the password to be used in conjunction with the certificate file.
Public propertyCertificateStoreLocation
Gets or sets the location to a personal store where a certificate is held.
Public propertyCertificateThumbprint
Gets or sets a certificate thumbprint to ensure correct identification of a certificate contained within a personal store.
Public propertyCharacterSet
Gets or sets the character set that should be used for sending queries to the server.
Public propertyConnectionProtocol
Gets or sets the protocol that should be used for communicating with MySQL.
Public propertyConnectionString
Gets or sets the connection string associated with the DbConnectionStringBuilder.
(Inherited from DbConnectionStringBuilder.)
Public propertyCount
Gets the current number of keys that are contained within the ConnectionString property.
(Inherited from DbConnectionStringBuilder.)
Public propertyDatabase
Gets or sets the name of the database for the initial connection.
Public propertyDnsSrv
Gets or sets a boolean value that indicates whether this connection should resolve DNS SRV records.
Public propertyIsFixedSize
Gets a value that indicates whether the DbConnectionStringBuilder has a fixed size.
(Inherited from DbConnectionStringBuilder.)
Public propertyIsReadOnly
Gets a value that indicates whether the DbConnectionStringBuilder is read-only.
(Inherited from DbConnectionStringBuilder.)
Public propertyItem
Gets or sets the value associated with the specified key.
(Inherited from DbConnectionStringBuilder.)
Public propertyKeepalive
Gets or sets the idle connection time(seconds) for TCP connections.
Public propertyKeys
Gets an ICollection that contains the keys in the DbConnectionStringBuilder.
(Inherited from DbConnectionStringBuilder.)
Public propertyPassword
Gets or sets the password that should be used to make a connection.
Public propertyPort
Gets or sets the port number that is used when the socket protocol is being used.
Public propertyServer
Gets or sets the name of the server.

The aliases 'address', 'addr' and 'network address' are deprecated as valid server synonyms.

Public propertySshHostName
Gets or sets the name of the SSH server.
Public propertySshKeyFile
Gets or sets the SSH key file to authenticate to the SSH server.
Public propertySshPassphrase
Gets or sets the passphrase of the key file to authenticate to the SSH server.
Public propertySshPassword
Gets or sets the password to authenticate to the SSH server.
Public propertySshPort
Gets or sets the port number to use when authenticating to the SSH server.
Public propertySshUserName
Gets or sets the user name to authenticate to the SSH server.
Public propertySslCa
Public propertySslCert
Gets or sets the path to a local certificate file in PEM format to use for establishing an encrypted connection.
Public propertySslKey
Gets or sets the path to a local key file in PEM format to use for establishing an encrypted connection.
Public propertySslMode
Indicates whether to use SSL connections and how to handle server certificate errors.
Public propertyCode exampleTlsVersion
Sets the TLS versions to use in a SSL connection to the server.
Public propertyUserID
Gets or sets the user ID that should be used to connect with.
Public propertyValues
Gets an ICollection that contains the values in the DbConnectionStringBuilder.
(Inherited from DbConnectionStringBuilder.)
Top
Methods
  NameDescription
Public methodAdd
Adds an entry with the specified key and value into the DbConnectionStringBuilder.
(Inherited from DbConnectionStringBuilder.)
Public methodClear
Clears the contents of the DbConnectionStringBuilder instance.
(Inherited from DbConnectionStringBuilder.)
Protected methodClearPropertyDescriptors
Clears the collection of PropertyDescriptor objects on the associated DbConnectionStringBuilder.
(Inherited from DbConnectionStringBuilder.)
Public methodContainsKey
Determines whether the DbConnectionStringBuilder contains a specific key.
(Inherited from DbConnectionStringBuilder.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquivalentTo
Compares the connection information in this DbConnectionStringBuilder object with the connection information in the supplied object.
(Inherited from DbConnectionStringBuilder.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetConnectionString
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Protected methodGetProperties
Fills a supplied Hashtable with information about all the properties of this DbConnectionStringBuilder.
(Inherited from DbConnectionStringBuilder.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the entry with the specified key from the DbConnectionStringBuilder instance.
(Inherited from DbConnectionStringBuilder.)
Public methodShouldSerialize
Indicates whether the specified key exists in this DbConnectionStringBuilder instance.
(Inherited from DbConnectionStringBuilder.)
Public methodToString
Returns the connection string associated with this DbConnectionStringBuilder.
(Inherited from DbConnectionStringBuilder.)
Public methodTryGetValue
Retrieves a value corresponding to the supplied key from this DbConnectionStringBuilder.
(Inherited from DbConnectionStringBuilder.)
Top
See Also