DbConnectionStringBuilder.Clear Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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