Class MySqlXConnectionStringBuilder
Enables the creation of connection strings by exposing the connection options as properties.
Contains connection options specific to the X protocol.
Inheritance
System.Data.Common.DbConnectionStringBuilder
MySqlXConnectionStringBuilder
Implements
System.Collections.IDictionary
System.Collections.ICollection
Assembly: MySql.Data.dll
Version: 9.0.0
Syntax
public sealed class MySqlXConnectionStringBuilder : MySqlBaseConnectionStringBuilder, IDictionary, ICollection, IEnumerable, ICustomTypeDescriptor
Constructors
MySqlXConnectionStringBuilder()
Declaration
public MySqlXConnectionStringBuilder()
MySqlXConnectionStringBuilder(String, Boolean)
Constructor accepting a connection string.
Declaration
public MySqlXConnectionStringBuilder(string connectionString, bool isDefaultPort = true)
Parameters
Type |
Name |
Description |
String |
connectionString |
The connection string.
|
Boolean |
isDefaultPort |
A flag indicating if the default port is used in the connection.
|
Properties
Auth
Declaration
public MySqlAuthenticationMode Auth { get; set; }
Property Value
Compression
Gets or sets the compression type between client and server.
Declaration
public CompressionType Compression { get; set; }
Property Value
CompressionAlgorithm
Gets or sets the compression algorithm.
Declaration
public string CompressionAlgorithm { get; set; }
Property Value
ConnectionAttributes
Gets or sets the connection attributes.
Declaration
public string ConnectionAttributes { get; set; }
Property Value
ConnectTimeout
Gets or sets the connection timeout.
Declaration
public uint ConnectTimeout { get; set; }
Property Value
Item[String]
Gets or sets a connection option.
Declaration
public override object this[string keyword] { get; set; }
Parameters
Type |
Name |
Description |
String |
keyword |
The keyword that identifies the connection option to modify.
|
Property Value
Overrides
SslCrl
Path to a local file containing certificate revocation lists.
Declaration
public string SslCrl { get; set; }
Property Value
Methods
Clear()
Declaration
public override void Clear()
Overrides
ContainsKey(String)
Declaration
public override bool ContainsKey(string keyword)
Parameters
Type |
Name |
Description |
String |
keyword |
|
Returns
Overrides
System.Data.Common.DbConnectionStringBuilder.ContainsKey(System.String)
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
System.Object.Equals(System.Object)
Remove(String)
Declaration
public override bool Remove(string keyword)
Parameters
Type |
Name |
Description |
String |
keyword |
|
Returns
Overrides
System.Data.Common.DbConnectionStringBuilder.Remove(System.String)
TryGetValue(String, out Object)
Declaration
public override bool TryGetValue(string keyword, out object value)
Parameters
Type |
Name |
Description |
String |
keyword |
The key of the item to retrieve.
|
Object |
value |
The value corresponding to the keyword .
|
Returns
Type |
Description |
Boolean |
true if keyword was found within the connection string;
otherwise, false.
|
Overrides
Exceptions
Implements
System.Collections.IDictionary
System.Collections.ICollection