DbConnectionStringBuilder.Clear Method ()


Clears the contents of the DbConnectionStringBuilder instance.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

abstract Clear : unit -> unit
override Clear : unit -> unit

Exception Condition

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
Return to top