Provides a base class for strongly typed connection string builders.
| C# | Visual Basic |
public class DbConnectionStringBuilder : IDictionary, ICollection, IEnumerable
Public Class DbConnectionStringBuilder _ Implements IDictionary, ICollection, IEnumerable
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| DbConnectionStringBuilder()()()() |
Initializes a new instance of the DbConnectionStringBuilder class.
| |
| Add(String, Object) |
Adds an entry with the specified key and value into the DbConnectionStringBuilder.
| |
| Clear()()()() |
Clears the contents of the DbConnectionStringBuilder instance.
| |
| ConnectionString |
Gets or sets the connection string associated with the DbConnectionStringBuilder.
| |
| ContainsKey(String) |
Determines if the DbConnectionStringBuilder contains a specific key.
| |
| Count |
Gets the current number of keys contained within the ConnectionString property.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetProperties(Hashtable) |
Fill a supplied Hashtable with information about all the properties of this DbConnectionStringBuilder.
| |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IsFixedSize |
Gets a value that indicates whether the DbConnectionStringBuilder has a fixed size.
| |
| IsReadOnly |
Gets a value that indicates whether the DbConnectionStringBuilder is read-only.
| |
| Item[([( String])]) |
Gets or sets the value associated with the specified key.
| |
| Keys |
Gets an ICollection containing the keys in the DbConnectionStringBuilder.
| |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Remove(String) |
Removes the entry with the specified key from the DbConnectionStringBuilder instance.
| |
| ToString()()()() |
Returns the connection string associated with this DbConnectionStringBuilder.
(Overrides Object.ToString()()()().) | |
| TryGetValue(String, Object%) |
Retrieves a value corresponding to the supplied key from this DbConnectionStringBuilder.
| |
| Values |
Gets an ICollection containing the values in the DbConnectionStringBuilder.
|
The DbConnectionStringBuilder class provides the base class from which the strongly typed connection string builders (SqlCeConnectionStringBuilder, CEConnectionStringBuilder, and so on) derive.
The connection string builders let developers programmatically create syntactically correct connection strings, and parse and rebuild existing connection strings.
| Object | ||
| DbConnectionStringBuilder | ||
| SqlConnectionStringBuilder | ||
| SqlCeConnectionStringBuilder | ||
| CEConnectionStringBuilder | ||