Using System.Configuration.ConfigurationManager Example (VB.NET)

Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Text Imports System.Configuration Imports System.Collections Imports System.Collections.Specialized Imports System.Diagnostics ‘ The following example shows how to use the ConfigurationManager ‘ class in a console application. ‘ ‘ IMPORTANT: To compile this example, you must add to the project ‘ a reference to the System.Configuration assembly. ‘ Namespace Samples.Aspnet…

2

Using System.Configuration.ConfigurationManager Example (C#)

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.Collections; using System.Collections.Specialized; using System.Diagnostics; // The following example shows how to use the ConfigurationManager // class in a console application. // // IMPORTANT: To compile this example, you must add to the project // a reference to the System.Configuration assembly. // namespace Samples.Aspnet…

6

Configuration API: Using System.Configuration.ConfigurationManager

Introduction This post shows a console application that uses the ConfigurationManager class. The code example extends what is already in the current documentation to demonstrate the use of this class. The example has been built using Microsoft Visual Studio 2008 and the .NET Framework 3.5.   The ConfigurationManager class enables a Web or Windows application…

2