DbConnectionStringBuilder::Clear Method ()
.NET Framework (current version)
Clears the contents of the DbConnectionStringBuilder instance.
Assembly: System.Data (in System.Data.dll)
| Exception | Condition |
|---|---|
| NotSupportedException | The DbConnectionStringBuilder is read-only. |
The Clear method removes all key/value pairs from the DbConnectionStringBuilder and resets all corresponding properties. This includes setting the Count property to 0 and the ConnectionString property to an empty string.
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Available since 10
.NET Framework
Available since 2.0
Show: