Export (0) Print
Expand All

DbConnectionStringBuilder.Clear Method

Clears the contents of the DbConnectionStringBuilder instance.

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

'Declaration
Public Overridable Sub Clear

Implements

IDictionary.Clear

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft