Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Clear Method

DbConnectionStringBuilder.Clear Method

Clears the contents of the DbConnectionStringBuilder instance.

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

public virtual void 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