asp.net.ph

Skip Navigation Links

<connectionStrings> clear Element

ASP.NET Syntax   ASP.NET Configuration Sections


.NET Framework version 2.0

Removes all references to inherited connection strings, allowing only the connection strings that are added by the current add element.

<clear />

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

None.

Parent Elements


Element Description
configuration Specifies the required root element in every configuration file that is used by the common language runtime and the .NET Framework applications.
system.web Specifies the root element for the ASP.NET configuration settings in a configuration file and contains configuration elements that configure ASP.NET Web applications and control how the applications behave.
connectionStrings Specifies a collection of database connection strings, as name/value pairs, for ASP.NET applications and features.

Remarks

The clear element removes all references to inherited connection strings from the collection that is stored in the connectionStrings element, allowing only the connection strings that are added by the current add element.

The connectionStrings element specifies a collection of database connection strings, as name/value pairs, for ASP.NET applications and features.

Example

The following code example shows how to clear the inherited connection strings.

<configuration>
   <connectionStrings>
      <clear />
   </connectionStrings>
</configuration>
See Also

<connectionStrings> Section   <connectionStrings> add Element   <connectionStrings> remove Element



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note